snippet.vim 728 B

12345678910111213141516171819
  1. " Syntax highlighting for snippet files (used for snipMate.vim)
  2. " Hopefully this should make snippets a bit nicer to write!
  3. syn match snipComment '^#.*'
  4. syn match placeHolder '\${\d\+\(:.\{-}\)\=}' contains=snipCommand
  5. syn match tabStop '\$\d\+'
  6. syn match snipCommand '[^\\]`.\{-}`'
  7. syn match snippet '^snippet.*' transparent contains=multiSnipText,snipKeyword
  8. syn match multiSnipText '\S\+ \zs.*' contained
  9. syn match snipKeyword '^snippet'me=s+8 contained
  10. syn match snipError "^[^#s\t].*$"
  11. hi link snipComment Comment
  12. hi link multiSnipText String
  13. hi link snipKeyword Keyword
  14. hi link snipComment Comment
  15. hi link placeHolder Special
  16. hi link tabStop Special
  17. hi link snipCommand String
  18. hi link snipError Error