From 2c178f86cfab95c1984fd32fe9299576272fdd1f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 6 Oct 2015 22:43:20 +0100 Subject: [PATCH] clang.kak: Highlight new and delete in completions --- rc/clang.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/clang.kak b/rc/clang.kak index 33e3f2cd7..7aa55ea95 100644 --- a/rc/clang.kak +++ b/rc/clang.kak @@ -61,7 +61,7 @@ def -shell-params clang-parse -docstring "Parse the contents of the current buff for (id in completions) { menu=id - gsub(/operator/, "{keyword}operator{}", menu) + gsub(/(operator|new|delete)/, "{keyword}&{}", menu) print id "@" completions[id] "@" menu } }' | sort | paste -s -d ':' | sed -e "s/\\\\n/\\n/g; s/'/\\\\'/g")