From 7062a05be3bd595a2f8ef5b395360b5765744633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 7 Apr 2016 22:45:57 +0200 Subject: 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 --- lexers/markdown.lua | 2 +- lexers/toml.lua | 2 +- lexers/yaml.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lexers/markdown.lua b/lexers/markdown.lua index 14380e9..0257010 100644 --- 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 index f56f848..5a27c97 100644 --- 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 index b88d5a0..2263f3f 100644 --- 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, -- cgit v1.2.3