From 4af29a07f02fbc92a320206d51554f210786c73b Mon Sep 17 00:00:00 2001 From: Randy Date: Tue, 15 May 2018 22:15:12 -0600 Subject: 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 --- lua/lexers/toml.lua | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lua/lexers/toml.lua') 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, } -- cgit v1.2.3