Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 11 | " quit when a syntax file was already loaded |
| 12 | if exists("b:current_syntax") |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 56 | " Only when an item doesn't have highlighting yet |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 57 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 58 | hi def link tssopParam Statement |
| 59 | hi def link tssopProp Identifier |
| 60 | hi def link tssopArgs Special |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 61 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 62 | hi def link tssopComment Statement |
| 63 | hi def link tssopCommentString Comment |
| 64 | hi def link tssopPropName Typedef |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 65 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 66 | hi def link tssopInteger Number |
| 67 | hi def link tssopFloat Float |
| 68 | hi def link tssopScientific Float |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 69 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 70 | |
| 71 | |
| 72 | let b:current_syntax = "tssop" |
| 73 | |
| 74 | " vim: ts=8 sw=2 |