- Fixed syntax highlight.

This commit is contained in:
Shougo Matsushita 2012-10-19 09:00:36 +09:00
parent 5970efcf6b
commit 16762dfe1d
2 changed files with 5 additions and 1 deletions

View File

@ -415,6 +415,9 @@ snippet *neosnippet-unite-action-snippet*
============================================================================== ==============================================================================
CHANGELOG *neosnippet-changelog* CHANGELOG *neosnippet-changelog*
2012-10-19
- Fixed syntax highlight.
2012-10-18 2012-10-18
- Fixed s:get_sources_list(). - Fixed s:get_sources_list().
- Added unite__new_candidate action in snippet source. - Added unite__new_candidate action in snippet source.

View File

@ -36,7 +36,8 @@ endif
syn region SnippetPrevWord start=+'+ end=+'+ contained syn region SnippetPrevWord start=+'+ end=+'+ contained
syn region SnippetPrevWord start=+"+ end=+"+ contained syn region SnippetPrevWord start=+"+ end=+"+ contained
syn region SnippetEval start=+\\\@<!`+ end=+\\\@<!`+ contained syn region SnippetEval start=+\\\@<!`+ end=+\\\@<!`+ contained
syn match SnippetWord '^\s\+.*$' contains=SnippetEval,SnippetExpand,SnippetEscape syn match SnippetWord '^\s\+.*$' contains=
\SnippetEval,SnippetExpand,SnippetEscape,SnippetVariable
syn match SnippetExpand '\${\d\+\%(:.\{-}\)\?\\\@<!}' contained syn match SnippetExpand '\${\d\+\%(:.\{-}\)\?\\\@<!}' contained
syn match SnippetVariable '\$\d\+' contained syn match SnippetVariable '\$\d\+' contained
syn match SnippetComment '^#.*$' syn match SnippetComment '^#.*$'