vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 97a03dc80b77476fc05342569b84aca8e5988ef7 parent f35624f211131ba209a3ebb7c0b231f4454c396b Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 7 Apr 2016 22:45:57 +0200 lexer: remove hard coded color specification from lexers The variable syntax used by scintillua %(color.red) intended to make colors configurable is currently not supported. Close #229 Diffstat:
| M | lexers/markdown.lua | | | 2 | +- |
| M | lexers/toml.lua | | | 2 | +- |
| M | lexers/yaml.lua | | | 2 | +- |
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lexers/markdown.lua b/lexers/markdown.lua @@ -91,7 +91,7 @@ M._tokenstyles = { h2 = hstyle..',size:'..(font_size + 4), h1 = hstyle..',size:'..(font_size + 5), code = l.STYLE_EMBEDDED..',eolfilled', - hr = 'back:black,eolfilled', + hr = l.STYLE_DEFAULT..',bold', link = 'underlined', link_url = 'underlined', link_label = l.STYLE_LABEL, diff --git a/lexers/toml.lua b/lexers/toml.lua @@ -59,7 +59,7 @@ M._rules = { } M._tokenstyles = { - indent_error = 'back:%(color.red)', + indent_error = 'back:red', timestamp = l.STYLE_NUMBER, } diff --git a/lexers/yaml.lua b/lexers/yaml.lua @@ -102,7 +102,7 @@ M._rules = { } M._tokenstyles = { - indent_error = 'back:%(color.red)', + indent_error = 'back:red', document = l.STYLE_CONSTANT, literal = l.STYLE_DEFAULT, timestamp = l.STYLE_NUMBER,