diff options
| author | David B. Lamkins <dlamkins@galois.com> | 2015-11-13 13:05:39 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-14 07:28:28 +0100 |
| commit | d72a2928e49139a39bd5ccd77dfedda8b01faac1 (patch) | |
| tree | 7406f797dccccd62b625e171166c2f87ea085fc1 /view.c | |
| parent | 4e0600b21373829aa3396660d65266ad3407a9b5 (diff) | |
| download | vis-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |
