vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 6459faddce0ee31e25c562a5dd815a64f35095d9 parent ab1c80d6ebb18e8389d485726efb1d5bde61d001 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 2 Mar 2017 13:02:27 +0100 lua: fix luacheck warnings in plugins Diffstat:
| M | lua/plugins/textobject-lexer.lua | | | 3 | --- |
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/lua/plugins/textobject-lexer.lua b/lua/plugins/textobject-lexer.lua @@ -18,12 +18,9 @@ vis:textobject_new("ii", function(win, pos) local data = win.file:content(before, after - before) local tokens = lexer:lex(data) local cur = before - -- print(before..", "..pos..", ".. after) for i = 1, #tokens, 2 do - local name = tokens[i] local token_next = before + tokens[i+1] - 1 - -- print(name..": ["..cur..", "..token_next.."] pos: "..pos) if cur <= pos and pos < token_next then return cur, token_next end