Merge remote-tracking branch 'lenormf/fix-clang-autocomplete'

This commit is contained in:
Maxime Coste 2019-11-28 20:34:17 +11:00
commit b19dae13fc

View File

@ -55,18 +55,16 @@ The syntaxic errors detected during parsing are shown when auto-diagnostics are
awk -F ': ' '
/^COMPLETION:/ && $2 !~ /[(,](Hidden|Inaccessible)[),]/ {
candidate=$3
gsub(/[[<{]#[^#]+#[]>}]/, "", candidate)
gsub(/[[<{]#.+?#[]>}]/, "", candidate)
gsub(/~/, "~~", candidate)
gsub(/\|/, "\\|", candidate)
gsub(/[[{<]#|#[}>]/, "", $3)
gsub(/#]/, " ", $3)
gsub(/[[{<]#|#[]}>]/, "", $3)
gsub(/:: /, "::", $3)
gsub(/ +$/, "", $3)
docstring=$4 ? $3 "\n" $4 : $3
gsub(/~/, "~~", docstring)
gsub(/!/, "!!", docstring)
gsub(/~|!/, "&&", docstring)
gsub(/\|/, "\\|", docstring)
if (candidate in candidates)
candidates[candidate]=candidates[candidate] "\n" docstring