vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit ac82caa79dc9c181fab0b4ae6f90feb1d2a7e8f0
parent 82230ddd3ddb75c0c0f8ae437145f8fe4960af07
Author: Randy <randy.josleyn@gmail.com>
Date:   Tue, 15 May 2018 22:15:12 -0600

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:
Mlua/lexers/toml.lua | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git 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, }