aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorDavid B. Lamkins <dlamkins@galois.com>2015-11-13 13:05:39 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-14 07:28:28 +0100
commitd72a2928e49139a39bd5ccd77dfedda8b01faac1 (patch)
tree7406f797dccccd62b625e171166c2f87ea085fc1 /view.c
parent4e0600b21373829aa3396660d65266ad3407a9b5 (diff)
downloadvis-d72a2928e49139a39bd5ccd77dfedda8b01faac1.tar.gz
vis-d72a2928e49139a39bd5ccd77dfedda8b01faac1.tar.xz
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 (limited to 'view.c')
-rw-r--r--view.c2
1 files changed, 1 insertions, 1 deletions
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 */