From c339bb3ae6646c3dbef8e73f41c1e797ed5ec99b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Oct 2015 17:09:41 +0200 Subject: vis: experimental support for lua/lpeg based syntax highlighting The lua based lexers are searched in the following order: $VIS_PATH/lexers $HOME/.vis/lexers /usr/share/vis/lexers followed by the standard lua package.path --- lexers/diff.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lexers/diff.lua') diff --git a/lexers/diff.lua b/lexers/diff.lua index 53b7f17..ee680aa 100644 --- a/lexers/diff.lua +++ b/lexers/diff.lua @@ -34,9 +34,9 @@ M._rules = { M._tokenstyles = { header = l.STYLE_COMMENT, - addition = 'fore:$(color.green)', - deletion = 'fore:$(color.red)', - change = 'fore:$(color.yellow)' + addition = 'fore:'..l.colors.green, + deletion = 'fore:'..l.colors.red, + change = 'fore:'..l.colors.yellow, } M._LEXBYLINE = true -- cgit v1.2.3