Improvements to the syntax file.

This commit is contained in:
Holger Rapp 2013-03-21 11:32:17 +01:00
parent 971778b93a
commit 584bee0ab1
2 changed files with 4 additions and 1 deletions

View File

@ -1296,6 +1296,7 @@ Contributors listed in chronological order:
Matt Patterson - fidothe Matt Patterson - fidothe
Mike Morearty - mmorearty Mike Morearty - mmorearty
Stanislav Golovanov - JazzCore Stanislav Golovanov - JazzCore
David Briscoe - DavidBriscoe
7.2 Snippets *UltiSnips-contrisnippets* 7.2 Snippets *UltiSnips-contrisnippets*

View File

@ -12,6 +12,7 @@ syntax include @Viml syntax/vim.vim
syn match snipComment "^#.*" contains=snipTODO syn match snipComment "^#.*" contains=snipTODO
syn keyword snipTODO FIXME NOTE NOTES TODO XXX contained syn keyword snipTODO FIXME NOTE NOTES TODO XXX contained
syn match snipDocString '"[^"]*"$'
syn match snipString '"[^"]*"' syn match snipString '"[^"]*"'
syn match snipTabsOnly "^\t\+$" syn match snipTabsOnly "^\t\+$"
@ -21,7 +22,7 @@ syn match snipKeyword "\(\<\(end\)\?\(snippet\|global\)\>\)\|extends\|clearsnipp
syn match snipExtends "^extends.*" contains=snipKeyword syn match snipExtends "^extends.*" contains=snipKeyword
" snippet definitions " snippet definitions
syn match snipStart "^snippet.*" contained contains=snipKeyword,snipString syn match snipStart "^snippet.*" contained contains=snipKeyword,snipDocString
syn match snipEnd "^endsnippet" contained contains=snipKeyword syn match snipEnd "^endsnippet" contained contains=snipKeyword
syn region snipCommand contained keepend start="`" end="`" contains=snipPythonCommand,snipVimLCommand syn region snipCommand contained keepend start="`" end="`" contains=snipPythonCommand,snipVimLCommand
syn region snipPythonCommand contained keepend start="`!p" end="`" contained contains=@Python syn region snipPythonCommand contained keepend start="`!p" end="`" contained contains=@Python
@ -43,6 +44,7 @@ syn match snipClear "^clearsnippets"
hi link snipComment Comment hi link snipComment Comment
hi link snipString String hi link snipString String
hi link snipDocString String
hi link snipTabsOnly Error hi link snipTabsOnly Error
hi link snipKeyword Keyword hi link snipKeyword Keyword