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/plugins/textobject-lexer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/plugins/textobject-lexer.lua') diff --git a/lua/plugins/textobject-lexer.lua b/lua/plugins/textobject-lexer.lua index ef29a9c..fc4876b 100644 --- a/lua/plugins/textobject-lexer.lua +++ b/lua/plugins/textobject-lexer.lua @@ -14,7 +14,7 @@ vis:textobject_new("ii", function(win, pos) end -- TODO make sure we start at a line boundary? - local lexer = vis.lexers.load(win.syntax) + local lexer = vis.lexers.load(win.syntax, nil, true) local data = win.file:content(before, after - before) local tokens = lexer:lex(data) local cur = before -- cgit v1.2.3