2 " Language: TSS (Thermal Synthesizer System) Optics
3 " Maintainer: Adrian Nagle, anagle@ball.com
4 " Last Change: 2003 May 11
6 " URL: http://www.naglenet.org/vim/syntax/tssop.vim
7 " MAIN URL: http://www.naglenet.org/vim/
11 " For version 5.x: Clear all syntax items
12 " For version 6.x: Quit when a syntax file was already loaded
15 elseif exists("b:current_syntax")
28 " Begin syntax definitions for tss optics file.
31 " Define keywords for TSS
32 syn keyword tssopParam ir_eps ir_trans ir_spec ir_tspec ir_refract
33 syn keyword tssopParam sol_eps sol_trans sol_spec sol_tspec sol_refract
34 syn keyword tssopParam color
36 "syn keyword tssopProp property
38 syn keyword tssopArgs white red blue green yellow orange violet pink
39 syn keyword tssopArgs turquoise grey black
43 " Define matches for TSS
44 syn match tssopComment /comment \+= \+".*"/ contains=tssopParam,tssopCommentString
45 syn match tssopCommentString /".*"/ contained
47 syn match tssopProp "property "
48 syn match tssopProp "edit/optic "
49 syn match tssopPropName "^property \S\+" contains=tssopProp
50 syn match tssopPropName "^edit/optic \S\+$" contains=tssopProp
52 syn match tssopInteger "-\=\<[0-9]*\>"
53 syn match tssopFloat "-\=\<[0-9]*\.[0-9]*"
54 syn match tssopScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>"
58 " Define the default highlighting
59 " For version 5.7 and earlier: only when not done already
60 " For version 5.8 and later: only when an item doesn't have highlighting yet
61 if version >= 508 || !exists("did_tssop_syntax_inits")
63 let did_tssop_syntax_inits = 1
64 command -nargs=+ HiLink hi link <args>
66 command -nargs=+ HiLink hi def link <args>
69 HiLink tssopParam Statement
70 HiLink tssopProp Identifier
71 HiLink tssopArgs Special
73 HiLink tssopComment Statement
74 HiLink tssopCommentString Comment
75 HiLink tssopPropName Typedef
77 HiLink tssopInteger Number
78 HiLink tssopFloat Float
79 HiLink tssopScientific Float
85 let b:current_syntax = "tssop"