From dc5f5a45a2315011ebeeb0a56a7434ead292dc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 31 Mar 2017 12:50:33 +0200 Subject: 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. --- lua/vis-std.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/vis-std.lua') 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 -- cgit v1.2.3