From 3ead8f1ac8dd046a78495c733e1fdbf73f061d91 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 6 Oct 2015 13:39:09 +0100 Subject: [PATCH] Highlight 'operator' in clang completion --- rc/clang.kak | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rc/clang.kak b/rc/clang.kak index 760490919..33e3f2cd7 100644 --- a/rc/clang.kak +++ b/rc/clang.kak @@ -59,7 +59,11 @@ def -shell-params clang-parse -docstring "Parse the contents of the current buff } END { for (id in completions) - print id "@" completions[id] + { + menu=id + gsub(/operator/, "{keyword}operator{}", menu) + print id "@" completions[id] "@" menu + } }' | sort | paste -s -d ':' | sed -e "s/\\\\n/\\n/g; s/'/\\\\'/g") echo "eval -client ${kak_client} echo 'clang completion done' set 'buffer=${kak_buffile}' clang_completions '${header}:${compl}'" | kak -p ${kak_session}