codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Cheetah template engine3" Maintainer: Max Ischenko <mfi@ukr.net>4" Last Change: 2003-05-115"6" Missing features:7" match invalid syntax, like bad variable ref. or unmatched closing tag8" PSP-style tags: <% .. %> (obsoleted feature)9" doc-strings and header comments (rarely used feature)10 11" quit when a syntax file was already loaded12if exists("b:current_syntax")13 finish14endif15 16syntax case match17 18syn keyword cheetahKeyword contained if else unless elif for in not19syn keyword cheetahKeyword contained while repeat break continue pass end20syn keyword cheetahKeyword contained set del attr def global include raw echo21syn keyword cheetahKeyword contained import from extends implements22syn keyword cheetahKeyword contained assert raise try catch finally23syn keyword cheetahKeyword contained errorCatcher breakpoint silent cache filter24syn match cheetahKeyword contained "\<compiler-settings\>"25 26" Matches cached placeholders27syn match cheetahPlaceHolder "$\(\*[0-9.]\+[wdhms]\?\*\|\*\)\?\h\w*\(\.\h\w*\)*" display28syn match cheetahPlaceHolder "$\(\*[0-9.]\+[wdhms]\?\*\|\*\)\?{\h\w*\(\.\h\w*\)*}" display29syn match cheetahDirective "^\s*#[^#].*$" contains=cheetahPlaceHolder,cheetahKeyword,cheetahComment display30 31syn match cheetahContinuation "\\$"32syn match cheetahComment "##.*$" display33syn region cheetahMultiLineComment start="#\*" end="\*#"34 35" Define the default highlighting.36" Only when an item doesn't have highlighting yet37 38hi def link cheetahPlaceHolder Identifier39hi def link cheetahDirective PreCondit40hi def link cheetahKeyword Define41hi def link cheetahContinuation Special42hi def link cheetahComment Comment43hi def link cheetahMultiLineComment Comment44 45 46let b:current_syntax = "cheetah"47 48 