From 5b0f0703002a2d5d4eda1d403f02a17496855cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Ros=C3=A9n?= Date: Sat, 21 Oct 2017 10:06:48 +0200 Subject: [PATCH] Improve kakrc highlighter --- rc/core/kakrc.kak | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rc/core/kakrc.kak b/rc/core/kakrc.kak index 48503993..17608125 100644 --- a/rc/core/kakrc.kak +++ b/rc/core/kakrc.kak @@ -31,8 +31,8 @@ add-highlighter -group / regions -default code kakrc \ keywords="${keywords}|try|catch|rename-client|rename-buffer|rename-session|change-directory|colorscheme" attributes="global|buffer|window|current" attributes="${attributes}|normal|insert|menu|prompt|goto|view|user|object" - attributes="${attributes}|number_lines|show_matching|show_whitespaces|fill|regex|dynregex|group|flag_lines|ranges|line|column|wrap|ref|regions" - types="int|bool|str|regex|int-list|str-list|line-flags|completions|range-faces" + attributes="${attributes}|number_lines|show_matching|show_whitespaces|fill|regex|dynregex|group|flag_lines|ranges|line|column|wrap|ref|regions|replace-ranges" + types="int|bool|str|regex|int-list|str-list|completions|line-specs|range-specs" values="default|black|red|green|yellow|blue|magenta|cyan|white|" # Add the language's grammar to the static completion list @@ -41,12 +41,12 @@ add-highlighter -group / regions -default code kakrc \ set -- window extra_word_chars '-' }" | sed 's,|,:,g' - # Highlight keywords. Teach \b that - does not create a word boundary + # Highlight keywords (which are always surrounded by whitespace) printf %s " - add-highlighter -group /kakrc/code regex \b(?