1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 23:34:12 +03:00

clang.kak: Highlight new and delete in completions

This commit is contained in:
Maxime Coste 2015-10-06 22:43:20 +01:00
parent 5e4443812c
commit 2c178f86cf

View File

@ -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")