diff options
| author | Randy <randy.josleyn@gmail.com> | 2018-05-16 21:53:57 -0600 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-02-11 08:49:57 +0100 |
| commit | bb6de703f7ef309ce0ca4de829021293fb63d219 (patch) | |
| tree | 586a9206c0d2f031e5b39a4dd943737cc1845903 /lua | |
| parent | 4af29a07f02fbc92a320206d51554f210786c73b (diff) | |
| download | vis-bb6de703f7ef309ce0ca4de829021293fb63d219.tar.gz vis-bb6de703f7ef309ce0ca4de829021293fb63d219.tar.xz | |
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 (limited to 'lua')
| -rw-r--r-- | lua/lexers/toml.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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}, |
