Fix #379 snippet parse

This commit is contained in:
Shougo Matsushita
2017-04-01 10:23:58 +09:00
parent 368f83d39c
commit affc71bd9f
3 changed files with 10 additions and 14 deletions

View File

@@ -42,7 +42,7 @@ syntax match neosnippetWord
\ '^\s\+.*$' contains=
\neosnippetEval,neosnippetPlaceHolder,neosnippetEscape,neosnippetVariable
syntax match neosnippetPlaceHolder
\ '\\\@<!\${\d\+\%(:.\{-}\)\?\\\@<!}'
\ '\%(\\\@<!\|\\\\\zs\)\${\d\+\%(:.\{-}\)\?\\\@<!}'
\ contained contains=neosnippetPlaceHolderComment
syntax match neosnippetVariable
\ '\\\@<!\$\d\+' contained