From bb6de703f7ef309ce0ca4de829021293fb63d219 Mon Sep 17 00:00:00 2001 From: Randy Date: Wed, 16 May 2018 21:53:57 -0600 Subject: 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. --- lua/lexers/toml.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lexers/toml.lua b/lua/lexers/toml.lua index 2584a03..35629fc 100644 --- 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}, -- cgit v1.2.3