1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-30 15:13:30 +03:00

Merge remote-tracking branch 'casimir/racer-closure-escape'

This commit is contained in:
Maxime Coste 2017-03-07 15:54:00 +00:00
commit b1a57a2b80

View File

@ -22,6 +22,7 @@ def racer-complete -docstring "Complete the current selection with racer" %{
word = $2
type = $7
desc = substr($9, 2, length($9) - 2)
gsub(/\|/, "\\|", desc)
gsub(/\\n/, "\n", desc)
menu = $8
sub(/^pub /, "", menu)
@ -30,6 +31,11 @@ def racer-complete -docstring "Complete the current selection with racer" %{
sub(word, "{default+e}" word "{default+d}", menu)
menu = "{default+d}" menu
word = word "("
} else if (type == "Enum") {
menu = substr(menu, 0, length(menu) - 2)
sub(word, "{default+e}" word "{default+d}", menu)
menu = "{default+d}" menu
word = word "::"
} else {
menu = "{default+e}" word "{default+d} " menu
}