aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lexers')
-rw-r--r--lua/lexers/toml.lua4
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,
}