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

Highlight 'operator' in clang completion

This commit is contained in:
Maxime Coste 2015-10-06 13:39:09 +01:00
parent 67646cd45a
commit 3ead8f1ac8

View File

@ -59,7 +59,11 @@ def -shell-params clang-parse -docstring "Parse the contents of the current buff
} }
END { END {
for (id in completions) 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") }' | sort | paste -s -d ':' | sed -e "s/\\\\n/\\n/g; s/'/\\\\'/g")
echo "eval -client ${kak_client} echo 'clang completion done' echo "eval -client ${kak_client} echo 'clang completion done'
set 'buffer=${kak_buffile}' clang_completions '${header}:${compl}'" | kak -p ${kak_session} set 'buffer=${kak_buffile}' clang_completions '${header}:${compl}'" | kak -p ${kak_session}