From 9996520d6bf1aaee21f66b5eb561c9f0b306216c Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 23 Apr 2017 18:26:07 +0900 Subject: [PATCH] Fix #384 escape abbr --- autoload/neosnippet/parser.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/neosnippet/parser.vim b/autoload/neosnippet/parser.vim index a917dc8..13acdd4 100644 --- a/autoload/neosnippet/parser.vim +++ b/autoload/neosnippet/parser.vim @@ -266,6 +266,7 @@ function! neosnippet#parser#_initialize_snippet(dict, path, line, pattern, name) \ neosnippet#get_placeholder_marker_pattern(). '\|'. \ neosnippet#get_mirror_placeholder_marker_pattern(). \ '\|\s\+\|\n\|TARGET', ' ', 'g') + let abbr = substitute(abbr, '\\\(\\\|`\|\$\)', '\1', 'g') let a:dict.abbr = a:dict.name else let abbr = a:dict.abbr