diff options
| author | Randy <randy.josleyn@gmail.com> | 2018-05-15 22:15:12 -0600 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-02-11 08:49:33 +0100 |
| commit | 4af29a07f02fbc92a320206d51554f210786c73b (patch) | |
| tree | 548bf7e2b6d6f395c6b581e9c17a7fb277216042 /lua/lexers/toml.lua | |
| parent | 6af46f9aa5a2966e5aa93d69d53893b8976918ca (diff) | |
| download | vis-4af29a07f02fbc92a320206d51554f210786c73b.tar.gz vis-4af29a07f02fbc92a320206d51554f210786c73b.tar.xz | |
lexers: remove TOML indent error
According to the TOML github page[1], indentation can be tabs *and/or*
spaces, so `indent_error` is removed.
[1] https://github.com/toml-lang/toml#example
Diffstat (limited to 'lua/lexers/toml.lua')
| -rw-r--r-- | lua/lexers/toml.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lua/lexers/toml.lua b/lua/lexers/toml.lua index a738bb4..2584a03 100644 --- a/lua/lexers/toml.lua +++ b/lua/lexers/toml.lua @@ -8,8 +8,6 @@ local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'toml'} -- Whitespace -local indent = #l.starts_line(S(' \t')) * - (token(l.WHITESPACE, ' ') + token('indent_error', '\t'))^1 local ws = token(l.WHITESPACE, S(' \t')^1 + l.newline^1) -- Comments. @@ -47,7 +45,6 @@ local identifier = token(l.IDENTIFIER, l.word) local operator = token(l.OPERATOR, S('#=+-,.{}[]()')) M._rules = { - {'indent', indent}, {'whitespace', ws}, {'keyword', keyword}, {'identifier', identifier}, @@ -59,7 +56,6 @@ M._rules = { } M._tokenstyles = { - indent_error = 'back:red', timestamp = l.STYLE_NUMBER, } |
