vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 282c845f1d1799aa9736f75f1b823b0bb662a55c parent ac82caa79dc9c181fab0b4ae6f90feb1d2a7e8f0 Author: Randy <randy.josleyn@gmail.com> Date: Wed, 16 May 2018 21:53:57 -0600 lexers: fix TOML comments not being detected `operator` variable matches "#", leaving nothing for the comments rule to match. Since "#" only marks comments in TOML, I just went ahead and removed the character from the `operator` token. Diffstat:
| M | lua/lexers/toml.lua | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lua/lexers/toml.lua b/lua/lexers/toml.lua @@ -42,7 +42,7 @@ local keyword = token(l.KEYWORD, word_match{ local identifier = token(l.IDENTIFIER, l.word) -- Operators. -local operator = token(l.OPERATOR, S('#=+-,.{}[]()')) +local operator = token(l.OPERATOR, S('=+-,.{}[]()')) M._rules = { {'whitespace', ws},