diff --git a/doc/UltiSnips.txt b/doc/UltiSnips.txt index 0315d0e..2a82d3f 100644 --- a/doc/UltiSnips.txt +++ b/doc/UltiSnips.txt @@ -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* diff --git a/syntax/snippets.vim b/syntax/snippets.vim index a41c6ac..1e9fda0 100644 --- a/syntax/snippets.vim +++ b/syntax/snippets.vim @@ -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