From d72a2928e49139a39bd5ccd77dfedda8b01faac1 Mon Sep 17 00:00:00 2001 From: "David B. Lamkins" Date: Fri, 13 Nov 2015 13:05:39 +0100 Subject: 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 --- view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view.c') diff --git a/view.c b/view.c index 20bc469..bd46e85 100644 --- 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 */ -- cgit v1.2.3