From da709cd9e90c3ab644bb92700f0ed40d965b80d3 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 13 Oct 2011 11:17:19 +0600 Subject: Initial commit. --- files/.vim/syntax/snippet.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 files/.vim/syntax/snippet.vim (limited to 'files/.vim/syntax/snippet.vim') diff --git a/files/.vim/syntax/snippet.vim b/files/.vim/syntax/snippet.vim new file mode 100755 index 0000000..ea6042a --- /dev/null +++ b/files/.vim/syntax/snippet.vim @@ -0,0 +1,17 @@ +" Syntax highlighting for snippet files (used for snipMate.vim) +" Hopefully this should make snippets a bit nicer to write! +syn match snipComment '^#.*' +syn match placeHolder '\${\d\+\(:.\{-}\)\=}' contains=snipCommand +syn match tabStop '\$\d\+' +syn match snipCommand '`.\{-}`' +syn match snippet '^snippet.*' transparent contains=multiSnipText,snipKeyword +syn match multiSnipText '\w\+ \zs.*' contained +syn match snipKeyword '^snippet'me=s+8 contained + +hi link snipComment Comment +hi link multiSnipText String +hi link snipKeyword Keyword +hi link snipComment Comment +hi link placeHolder Special +hi link tabStop Special +hi link snipCommand String -- cgit v1.2.3