From 8c5d3128ef26c0a99091c72be178c2f267b2f08f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 5 May 2016 13:54:12 +0100 Subject: [PATCH] static_words def style tweak in c-family.kak --- rc/core/c-family.kak | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak index a481fa0d..6aa0298d 100644 --- a/rc/core/c-family.kak +++ b/rc/core/c-family.kak @@ -102,9 +102,7 @@ addhl -group /c/code regex %{\bNULL\b|\b-?(0x[0-9a-fA-F]+|\d+)[fdiu]?|'((\\.)?|[ # Add the language's grammar to the static completion list printf %s\\n "hook global WinSetOption filetype=c %{ - set window static_words '${keywords}' - set -add window static_words '${attributes}' - set -add window static_words '${types}' + set window static_words '${keywords}:${attributes}:${types}' }" | sed 's,|,:,g' # Highlight keywords @@ -134,10 +132,7 @@ addhl -group /cpp/code regex %{\b-?(0x[0-9a-fA-F]+|\d+)[fdiu]?|'((\\.)?|[^'\\])' # Add the language's grammar to the static completion list printf %s\\n "hook global WinSetOption filetype=cpp %{ - set window static_words '${keywords}' - set -add window static_words '${attributes}' - set -add window static_words '${types}' - set -add window static_words '${values}' + set window static_words '${keywords}:${attributes}:${types}:${values}' }" | sed 's,|,:,g' # Highlight keywords