]> git.madduck.net Git - etc/vim.git/blob - .vim/syntax/snippet.vim

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

check in snipmate 0.83
[etc/vim.git] / .vim / syntax / snippet.vim
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
12 hi link snipComment   Comment
13 hi link multiSnipText String
14 hi link snipKeyword   Keyword
15 hi link snipComment   Comment
16 hi link placeHolder   Special
17 hi link tabStop       Special
18 hi link snipCommand   String
19 hi link snipError     Error