vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit d6a14e902381918bf39023ed4ed07c2d6b842560
parent c9eec9b4c7fb4f08839cfc64c5f8f78a6c558012
Author: David B. Lamkins <dlamkins@galois.com>
Date:   Fri, 13 Nov 2015 13:05:39 +0100

view: increase range to consider for syntax highlighting

Increase the number of bytes to consider for syntax highligthing
before the visisble area. This should improve the handling of long
block comments.

Closes #110

Diffstat:
Mview.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/view.c b/view.c @@ -452,7 +452,7 @@ void view_update(View *view) { return; /* maximal number of bytes to consider for syntax highlighting before * the visible area */ - const size_t lexer_before_max = 4096; + const size_t lexer_before_max = 16384; /* absolute position to start syntax highlighting */ const size_t lexer_start = view->start >= lexer_before_max ? view->start - lexer_before_max : 0; /* number of bytes used for syntax highlighting before visible are */