Permalink
Browse files

Syntax highlight the snippet trigger names in the .snippets files to …

…make them stand out from the replacement text
  • Loading branch information...
1 parent 68f668e commit 7ff53bdf4ddd9320257fbba2ff7e792b8480440f @davejamesmiller davejamesmiller committed Nov 3, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 syntax/snippets.vim
View
@@ -5,11 +5,12 @@ syn match placeHolder '\${\d\+\(:.\{-}\)\=}' contains=snipCommand
syn match tabStop '\$\d\+'
syn match snipEscape '\\\\\|\\`'
syn match snipCommand '\%(\\\@<!\%(\\\\\)*\)\@<=`.\{-}\%(\\\@<!\%(\\\\\)*\)\@<=`'
-syn match snippet '^snippet.*' transparent contains=multiSnipText,snipKeyword
+syn match snippet '^snippet.*' contains=multiSnipText,snipKeyword
syn match multiSnipText '\S\+ \zs.*' contained
syn match snipKeyword '^snippet'me=s+8 contained
syn match snipError "^[^#s\t].*$"
+hi link snippet Identifier
hi link snipComment Comment
hi link multiSnipText String
hi link snipKeyword Keyword

0 comments on commit 7ff53bd

Please sign in to comment.