syntax/hdf.vim0100644000076500000240000000170710131545617013053 0ustar culleystaff" Vim syntax file " Language: clearsilver templates (hdf files) " Maintainer: Culley Harrelson culley@fastmail.fm " Last Change: 2004-10-08 " Filenames: *.cs *.cs " See: http://www.clearsilver.net/ if !exists("main_syntax") if exists("b:current_syntax") finish endif let main_syntax = 'hdf' endif " lang flag syn case ignore syn match hdfLang "\[Lang\]" contained highlight link hdfLang Identifier " Parameters syn match hdfParams ".*="me=e-1 contains=HdfLang syn match hdfParams ".*{"me=e-1 contains=HdfLang syn match hdfParams ".*<<"me=e-2 contains=HdfLang highlight link hdfParams Keyword " Values syn match hdfValues "=.*"hs=s+1 highlight link hdfValues String syn region hdfHereDoc matchgroup=hdfHereEnd start="<<\z(\S*\)" end="^\z1$" highlight link hdfHereDoc String highlight link hdfHereEnd Identifier let b:current_syntax = "hdf" if main_syntax == 'hdf' unlet main_syntax endif " vim: ts=8 syntax/cs.vim0100644000076500000240000000255510131545634012720 0ustar culleystaff" Vim syntax file " Language: clearsilver templates (cs files) " Maintainer: Culley Harrelson culley@fastmail.fm " Last Change: 2004-10-08 " Filenames: *.cs *.cs " See: http://www.clearsilver.net/ if !exists("main_syntax") if version < 600 syntax clear elseif exists("b:current_syntax") finish endif let main_syntax = 'cs' endif syn case ignore runtime! syntax/html.vim syn region csRegion matchgroup=Delimiter start="" contains=csInclude,htmlString,csLabel,csRepeat,csConditional,csFunction,csOperator contained syn keyword csInclude include linclude contained syn keyword csLabel var evar lvar set name contained syn keyword csRepeat each loop with contained syn keyword csFunction def call contained syn keyword csConditional if else elif alt contained syn match csOperator "[|&=!?:><+-/*%.\[\]#\$]" contained syn cluster htmlPreproc add=csRegion if version >= 508 || !exists("did_cs_syn_inits") if version < 508 let did_cs_syn_inits = 1 command -nargs=+ HiLink hi link else command -nargs=+ HiLink hi def link endif HiLink csInclude Include HiLink csLabel Label HiLink csRepeat Repeat HiLink csConditional Conditional HiLink csFunction Function HiLink csOperator Operator delcommand HiLink endif let b:current_syntax = "cs" if main_syntax == 'cs' unlet main_syntax endif " vim: ts=8