Merge remote-tracking branch 'lenormf/fix-clang-autocomplete'
This commit is contained in:
commit
b19dae13fc
|
@ -55,18 +55,16 @@ The syntaxic errors detected during parsing are shown when auto-diagnostics are
|
||||||
awk -F ': ' '
|
awk -F ': ' '
|
||||||
/^COMPLETION:/ && $2 !~ /[(,](Hidden|Inaccessible)[),]/ {
|
/^COMPLETION:/ && $2 !~ /[(,](Hidden|Inaccessible)[),]/ {
|
||||||
candidate=$3
|
candidate=$3
|
||||||
gsub(/[[<{]#[^#]+#[]>}]/, "", candidate)
|
gsub(/[[<{]#.+?#[]>}]/, "", candidate)
|
||||||
gsub(/~/, "~~", candidate)
|
gsub(/~/, "~~", candidate)
|
||||||
gsub(/\|/, "\\|", candidate)
|
gsub(/\|/, "\\|", candidate)
|
||||||
|
|
||||||
gsub(/[[{<]#|#[}>]/, "", $3)
|
gsub(/[[{<]#|#[]}>]/, "", $3)
|
||||||
gsub(/#]/, " ", $3)
|
|
||||||
gsub(/:: /, "::", $3)
|
gsub(/:: /, "::", $3)
|
||||||
gsub(/ +$/, "", $3)
|
gsub(/ +$/, "", $3)
|
||||||
docstring=$4 ? $3 "\n" $4 : $3
|
docstring=$4 ? $3 "\n" $4 : $3
|
||||||
|
|
||||||
gsub(/~/, "~~", docstring)
|
gsub(/~|!/, "&&", docstring)
|
||||||
gsub(/!/, "!!", docstring)
|
|
||||||
gsub(/\|/, "\\|", docstring)
|
gsub(/\|/, "\\|", docstring)
|
||||||
if (candidate in candidates)
|
if (candidate in candidates)
|
||||||
candidates[candidate]=candidates[candidate] "\n" docstring
|
candidates[candidate]=candidates[candidate] "\n" docstring
|
||||||
|
|
Loading…
Reference in New Issue
Block a user