Browse Source

Fix #384 escape abbr

PR/fix-warning
Shougo Matsushita 7 years ago
parent
commit
9996520d6b
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      autoload/neosnippet/parser.vim

+ 1
- 0
autoload/neosnippet/parser.vim View File

@@ -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


Loading…
Cancel
Save