Fix tabs in clang.kak and improve escaping
This commit is contained in:
parent
47c8a4378f
commit
b4661e37d2
|
@ -46,8 +46,10 @@ def -shell-params clang-parse %{
|
|||
gsub(/ +$/, "", $3)
|
||||
id=substr($2, 1, length($2)-1)
|
||||
gsub(/:/, "\\:", id)
|
||||
gsub(/"/, "\\\"", id)
|
||||
desc=$4 ? $3 "\\n" $4 : $3
|
||||
gsub(/:/, "\\:", desc)
|
||||
gsub(/"/, "\\\"", desc)
|
||||
if (id in completions)
|
||||
completions[id]=completions[id] "\\n" desc
|
||||
else
|
||||
|
@ -58,7 +60,7 @@ def -shell-params clang-parse %{
|
|||
print id "@" completions[id]
|
||||
}' | sort | paste -s -d ':' | sed -e 's/\\n/\n/g')
|
||||
echo "eval -client ${kak_client} echo completed
|
||||
set 'buffer=${kak_buffile}' clang_completions %[${header}:${compl}]" | kak -p ${kak_session}
|
||||
set 'buffer=${kak_buffile}' clang_completions \"${header}:${compl}\"" | kak -p ${kak_session}
|
||||
else
|
||||
clang++ -x ${ft} -fsyntax-only ${kak_opt_clang_options} - < ${dir}/buf 2> ${dir}/stderr
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user