blob: 6a775b2358440c1194dcf052e78fb8c81f39929c [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: TSS (Thermal Synthesizer System) Optics
3" Maintainer: Adrian Nagle, anagle@ball.com
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
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020011" quit when a syntax file was already loaded
12if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000013 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
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020056" Only when an item doesn't have highlighting yet
Bram Moolenaar071d4272004-06-13 20:20:40 +000057
Bram Moolenaarf37506f2016-08-31 22:22:10 +020058hi def link tssopParam Statement
59hi def link tssopProp Identifier
60hi def link tssopArgs Special
Bram Moolenaar071d4272004-06-13 20:20:40 +000061
Bram Moolenaarf37506f2016-08-31 22:22:10 +020062hi def link tssopComment Statement
63hi def link tssopCommentString Comment
64hi def link tssopPropName Typedef
Bram Moolenaar071d4272004-06-13 20:20:40 +000065
Bram Moolenaarf37506f2016-08-31 22:22:10 +020066hi def link tssopInteger Number
67hi def link tssopFloat Float
68hi def link tssopScientific Float
Bram Moolenaar071d4272004-06-13 20:20:40 +000069
Bram Moolenaar071d4272004-06-13 20:20:40 +000070
71
72let b:current_syntax = "tssop"
73
74" vim: ts=8 sw=2