From 60d08137044c5fa52213fe89863bdf0018a36df7 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 4 Jan 2017 12:23:25 +0000 Subject: [PATCH] Tweak clang menu highlight so that we dont separate backspace from the escaped char --- rc/extra/clang.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/extra/clang.kak b/rc/extra/clang.kak index 2a4d6f50..04e4cb1f 100644 --- a/rc/extra/clang.kak +++ b/rc/extra/clang.kak @@ -68,7 +68,7 @@ The syntaxic errors detected during parsing are shown when auto-diagnostics are END { for (id in docstrings) { menu=id - gsub(/(^|[^[:alnum:]_])(operator|new|delete)($|[^[:alnum:]_])/, "{keyword}&{}", menu) + gsub(/(^|[^[:alnum:]_])(operator|new|delete)($|[^[:alnum:]{}_]+)/, "{keyword}&{}", menu) gsub(/(^|[[:space:]])(int|size_t|bool|char|unsigned|signed|long)($|[[:space:]])/, "{type}&{}", menu) gsub(/[^[:alnum:]{}_]+/, "{operator}&{}", menu) print id "|" docstrings[id] "|" menu