Mercurial > vim
annotate runtime/syntax/tssop.vim @ 27552:60f12889d36b
Added tag v8.2.4302 for changeset 845e518cda115ee5d88c6f7f9077e436ae518b59
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Feb 2022 19:15:04 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " 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 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
11 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
12 if exists("b:current_syntax") |
7 | 13 finish |
14 endif | |
15 | |
16 | |
17 | |
18 " Ignore case | |
19 syn case ignore | |
20 | |
21 | |
22 | |
23 " | |
24 " | |
25 " Begin syntax definitions for tss optics file. | |
26 " | |
27 | |
28 " Define keywords for TSS | |
29 syn keyword tssopParam ir_eps ir_trans ir_spec ir_tspec ir_refract | |
30 syn keyword tssopParam sol_eps sol_trans sol_spec sol_tspec sol_refract | |
31 syn keyword tssopParam color | |
32 | |
33 "syn keyword tssopProp property | |
34 | |
35 syn keyword tssopArgs white red blue green yellow orange violet pink | |
36 syn keyword tssopArgs turquoise grey black | |
37 | |
38 | |
39 | |
40 " Define matches for TSS | |
41 syn match tssopComment /comment \+= \+".*"/ contains=tssopParam,tssopCommentString | |
42 syn match tssopCommentString /".*"/ contained | |
43 | |
44 syn match tssopProp "property " | |
45 syn match tssopProp "edit/optic " | |
46 syn match tssopPropName "^property \S\+" contains=tssopProp | |
47 syn match tssopPropName "^edit/optic \S\+$" contains=tssopProp | |
48 | |
49 syn match tssopInteger "-\=\<[0-9]*\>" | |
50 syn match tssopFloat "-\=\<[0-9]*\.[0-9]*" | |
51 syn match tssopScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>" | |
52 | |
53 | |
54 | |
55 " Define the default highlighting | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
56 " Only when an item doesn't have highlighting yet |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
57 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
58 hi def link tssopParam Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
59 hi def link tssopProp Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
60 hi def link tssopArgs Special |
7 | 61 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
62 hi def link tssopComment Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
63 hi def link tssopCommentString Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
64 hi def link tssopPropName Typedef |
7 | 65 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
66 hi def link tssopInteger Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
67 hi def link tssopFloat Float |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
68 hi def link tssopScientific Float |
7 | 69 |
70 | |
71 | |
72 let b:current_syntax = "tssop" | |
73 | |
74 " vim: ts=8 sw=2 |