Fix #384 escape abbr

This commit is contained in:
Shougo Matsushita 2017-04-23 18:26:07 +09:00
parent c91ac0b67f
commit 9996520d6b

View File

@ -266,6 +266,7 @@ function! neosnippet#parser#_initialize_snippet(dict, path, line, pattern, name)
\ neosnippet#get_placeholder_marker_pattern(). '\|'. \ neosnippet#get_placeholder_marker_pattern(). '\|'.
\ neosnippet#get_mirror_placeholder_marker_pattern(). \ neosnippet#get_mirror_placeholder_marker_pattern().
\ '\|\s\+\|\n\|TARGET', ' ', 'g') \ '\|\s\+\|\n\|TARGET', ' ', 'g')
let abbr = substitute(abbr, '\\\(\\\|`\|\$\)', '\1', 'g')
let a:dict.abbr = a:dict.name let a:dict.abbr = a:dict.name
else else
let abbr = a:dict.abbr let abbr = a:dict.abbr