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