codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: TSS (Thermal Synthesizer System) Optics3" Maintainer: Adrian Nagle, anagle@ball.com4" Last Change: 2003 May 115" Filenames: *.tssop6" URL: http://www.naglenet.org/vim/syntax/tssop.vim7" MAIN URL: http://www.naglenet.org/vim/8 9 10 11" quit when a syntax file was already loaded12if exists("b:current_syntax")13 finish14endif15 16 17 18" Ignore case19syn case ignore20 21 22 23"24"25" Begin syntax definitions for tss optics file.26"27 28" Define keywords for TSS29syn keyword tssopParam ir_eps ir_trans ir_spec ir_tspec ir_refract30syn keyword tssopParam sol_eps sol_trans sol_spec sol_tspec sol_refract31syn keyword tssopParam color32 33"syn keyword tssopProp property34 35syn keyword tssopArgs white red blue green yellow orange violet pink36syn keyword tssopArgs turquoise grey black37 38 39 40" Define matches for TSS41syn match tssopComment /comment \+= \+".*"/ contains=tssopParam,tssopCommentString42syn match tssopCommentString /".*"/ contained43 44syn match tssopProp "property "45syn match tssopProp "edit/optic "46syn match tssopPropName "^property \S\+" contains=tssopProp47syn match tssopPropName "^edit/optic \S\+$" contains=tssopProp48 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 highlighting56" Only when an item doesn't have highlighting yet57 58hi def link tssopParam Statement59hi def link tssopProp Identifier60hi def link tssopArgs Special61 62hi def link tssopComment Statement63hi def link tssopCommentString Comment64hi def link tssopPropName Typedef65 66hi def link tssopInteger Number67hi def link tssopFloat Float68hi def link tssopScientific Float69 70 71 72let b:current_syntax = "tssop"73 74" vim: ts=8 sw=275 