1" Vim syntax file 2" Language: TSS (Thermal Synthesizer System) Optics 3" Maintainer: Adrian Nagle, [email protected] 4" Last Change: 2003 May 11 5" Filenames: *.tssop 6" URL: http://www.naglenet.org/vim/syntax/tssop.vim 7" MAIN URL: http://www.naglenet.org/vim/ 8 9 10 11" quit when a syntax file was already loaded 12if exists("b:current_syntax") 13 finish 14endif 15 16 17 18" Ignore case 19syn case ignore 20 21 22 23" 24" 25" Begin syntax definitions for tss optics file. 26" 27 28" Define keywords for TSS 29syn keyword tssopParam ir_eps ir_trans ir_spec ir_tspec ir_refract 30syn keyword tssopParam sol_eps sol_trans sol_spec sol_tspec sol_refract 31syn keyword tssopParam color 32 33"syn keyword tssopProp property 34 35syn keyword tssopArgs white red blue green yellow orange violet pink 36syn keyword tssopArgs turquoise grey black 37 38 39 40" Define matches for TSS 41syn match tssopComment /comment \+= \+".*"/ contains=tssopParam,tssopCommentString 42syn match tssopCommentString /".*"/ contained 43 44syn match tssopProp "property " 45syn match tssopProp "edit/optic " 46syn match tssopPropName "^property \S\+" contains=tssopProp 47syn match tssopPropName "^edit/optic \S\+$" contains=tssopProp 48 49syn match tssopInteger "-\=\<[0-9]*\>" 50syn match tssopFloat "-\=\<[0-9]*\.[0-9]*" 51syn match tssopScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>" 52 53 54 55" Define the default highlighting 56" Only when an item doesn't have highlighting yet 57 58hi def link tssopParam Statement 59hi def link tssopProp Identifier 60hi def link tssopArgs Special 61 62hi def link tssopComment Statement 63hi def link tssopCommentString Comment 64hi def link tssopPropName Typedef 65 66hi def link tssopInteger Number 67hi def link tssopFloat Float 68hi def link tssopScientific Float 69 70 71 72let b:current_syntax = "tssop" 73 74" vim: ts=8 sw=2 75