diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-31 12:50:33 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-31 12:58:21 +0200 |
| commit | dc5f5a45a2315011ebeeb0a56a7434ead292dc96 (patch) | |
| tree | 42e155217801668ace0d7c0a2264a323ed42c801 /lua/vis-std.lua | |
| parent | 6f44057d09b865e9c7e443cd7d7adb8e541121db (diff) | |
| download | vis-dc5f5a45a2315011ebeeb0a56a7434ead292dc96.tar.gz vis-dc5f5a45a2315011ebeeb0a56a7434ead292dc96.tar.xz | |
lexers: sync with scintillua changeset 600 rev fdeca0b808bf
I think the default value for the cache argument to the lexer load
function should be true, not false. Optimize for the common case.
This makes the API ugly/harder to use. But for now we follow upstream.
Diffstat (limited to 'lua/vis-std.lua')
| -rw-r--r-- | lua/vis-std.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/vis-std.lua b/lua/vis-std.lua index f7dc4f5..01d137a 100644 --- a/lua/vis-std.lua +++ b/lua/vis-std.lua @@ -39,7 +39,7 @@ end, "Number of bytes to consider for syntax highlighting") vis.events.subscribe(vis.events.WIN_HIGHLIGHT, function(win) if win.syntax == nil or vis.lexers == nil then return end - local lexer = vis.lexers.load(win.syntax) + local lexer = vis.lexers.load(win.syntax, nil, true) if lexer == nil then return end -- TODO: improve heuristic for initial style |
