File: snippet.vim

package info (click to toggle)
vim-snipmate 0.90-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: sh: 15; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
" Syntax highlighting for .snippet files (used for snipMate.vim)
" Hopefully this should make snippets a bit nicer to write!
syn match placeHolder '\${\d\+\(:.\{-}\)\=}' contains=snipCommand
syn match tabStop '\$\d\+'
syn match snipEscape '\\\\\|\\`'
syn match snipCommand '\%(\\\@<!\%(\\\\\)*\)\@<=`.\{-}\%(\\\@<!\%(\\\\\)*\)\@<=`'

hi link placeHolder   Special
hi link tabStop       Special
hi link snipEscape    SpecialChar
hi link snipCommand   String