Improvements to the syntax file.
This commit is contained in:
parent
971778b93a
commit
584bee0ab1
@ -1296,6 +1296,7 @@ Contributors listed in chronological order:
|
||||
Matt Patterson - fidothe
|
||||
Mike Morearty - mmorearty
|
||||
Stanislav Golovanov - JazzCore
|
||||
David Briscoe - DavidBriscoe
|
||||
|
||||
|
||||
7.2 Snippets *UltiSnips-contrisnippets*
|
||||
|
@ -12,6 +12,7 @@ syntax include @Viml syntax/vim.vim
|
||||
syn match snipComment "^#.*" contains=snipTODO
|
||||
syn keyword snipTODO FIXME NOTE NOTES TODO XXX contained
|
||||
|
||||
syn match snipDocString '"[^"]*"$'
|
||||
syn match snipString '"[^"]*"'
|
||||
syn match snipTabsOnly "^\t\+$"
|
||||
|
||||
@ -21,7 +22,7 @@ syn match snipKeyword "\(\<\(end\)\?\(snippet\|global\)\>\)\|extends\|clearsnipp
|
||||
syn match snipExtends "^extends.*" contains=snipKeyword
|
||||
|
||||
" 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 region snipCommand contained keepend start="`" end="`" contains=snipPythonCommand,snipVimLCommand
|
||||
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 snipString String
|
||||
hi link snipDocString String
|
||||
hi link snipTabsOnly Error
|
||||
|
||||
hi link snipKeyword Keyword
|
||||
|
Loading…
Reference in New Issue
Block a user