annotate runtime/syntax/trasys.vim @ 18129:52078b0635f7

Added tag v8.1.2059 for changeset aeabc666a119c29f50094216dd91fd842ce91b38
author Bram Moolenaar <Bram@vim.org>
date Fri, 20 Sep 2019 13:45:05 +0200
parents 46763b01cd9a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: TRASYS input file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Adrian Nagle, anagle@ball.com
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2003 May 11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Filenames: *.inp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://www.naglenet.org/vim/syntax/trasys.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " MAIN URL: http://www.naglenet.org/vim/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Force free-form fortran format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 let fortran_free_source=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Load FORTRAN syntax file
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
21 runtime! syntax/fortran.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Ignore case
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Define keywords for TRASYS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword trasysOptions model rsrec info maxfl nogo dmpdoc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword trasysOptions rsi rti rso rto bcdou cmerg emerg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword trasysOptions user1 nnmin erplot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword trasysSurface icsn tx ty tz rotx roty rotz inc bcsn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword trasysSurface nnx nny nnz nnax nnr nnth unnx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword trasysSurface unny unnz unnax unnr unnth type idupsf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword trasysSurface imagsf act active com shade bshade axmin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword trasysSurface axmax zmin zmax rmin rmax thmin thmin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword trasysSurface thmax alpha emiss trani trans spri sprs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword trasysSurface refno posit com dupbcs dimensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword trasysSurface dimension position prop surfn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword trasysSurfaceType rect trap disk cyl cone sphere parab
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword trasysSurfaceType box5 box6 shpero tor ogiv elem tape poly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword trasysSurfaceArgs ff di top bottom in out both no only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword trasysArgs fig smn nodea zero only ir sol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword trasysArgs both wband stepn initl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword trasysOperations orbgen build
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 "syn keyword trasysSubRoutine call
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword trasysSubRoutine chgblk ndata ndatas odata odatas
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword trasysSubRoutine pldta ffdata cmdata adsurf rbdata
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword trasysSubRoutine rtdata pffshd orbit1 orbit2 orient
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword trasysSubRoutine didt1 didt1s didt2 didt2s spin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword trasysSubRoutine spinav dicomp distab drdata gbdata
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword trasysSubRoutine gbaprx rkdata rcdata aqdata stfaq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword trasysSubRoutine qodata qoinit modar modpr modtr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword trasysSubRoutine modprs modshd moddat rstoff rston
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword trasysSubRoutine rsmerg ffread diread ffusr1 diusr1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword trasysSubRoutine surfp didt3 didt3s romain stfrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword trasysSubRoutine rornt rocstr romove flxdata title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword trassyPrcsrSegm nplot oplot plot cmcal ffcal rbcal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword trassyPrcsrSegm rtcal dical drcal sfcal gbcal rccal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword trassyPrcsrSegm rkcal aqcal qocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " Define matches for TRASYS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn match trasysOptions "list source"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match trasysOptions "save source"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn match trasysOptions "no print"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 "syn match trasysSurface "^K *.* [^$]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 "syn match trasysSurface "^D *[0-9]*\.[0-9]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 "syn match trasysSurface "^I *.*[0-9]\+\.\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 "syn match trasysSurface "^N *[0-9]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 "syn match trasysSurface "^M *[a-z[A-Z0-9]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 "syn match trasysSurface "^B[C][S] *[a-zA-Z0-9]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 "syn match trasysSurface "^S *SURFN.*[0-9]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn match trasysSurface "P[0-9]* *="he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn match trasysIdentifier "^L "he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn match trasysIdentifier "^K "he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn match trasysIdentifier "^D "he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn match trasysIdentifier "^I "he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn match trasysIdentifier "^N "he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn match trasysIdentifier "^M "he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn match trasysIdentifier "^B[C][S]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn match trasysIdentifier "^S "he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn match trasysComment "^C.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn match trasysComment "^R.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn match trasysComment "\$.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn match trasysHeader "^header[^,]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn match trasysMacro "^FAC"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn match trasysInteger "-\=\<[0-9]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn match trasysFloat "-\=\<[0-9]*\.[0-9]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn match trasysScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn match trasysBlank "' \+'"hs=s+1,he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn match trasysEndData "^END OF DATA"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 if exists("thermal_todo")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 execute 'syn match trasysTodo ' . '"^'.thermal_todo.'.*$"'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn match trasysTodo "^?.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 " Define regions for TRASYS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn region trasysComment matchgroup=trasysHeader start="^HEADER DOCUMENTATION DATA" end="^HEADER[^,]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 " Define synchronizing patterns for TRASYS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn sync maxlines=500
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn sync match trasysSync grouphere trasysComment "^HEADER DOCUMENTATION DATA"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 " Define the default highlighting
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
132 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
134 hi def link trasysOptions Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
135 hi def link trasysSurface Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
136 hi def link trasysSurfaceType Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
137 hi def link trasysSurfaceArgs Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
138 hi def link trasysArgs Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
139 hi def link trasysOperations Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
140 hi def link trasysSubRoutine Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
141 hi def link trassyPrcsrSegm PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
142 hi def link trasysIdentifier Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
143 hi def link trasysComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
144 hi def link trasysHeader Typedef
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
145 hi def link trasysMacro Macro
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
146 hi def link trasysInteger Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
147 hi def link trasysFloat Float
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
148 hi def link trasysScientific Float
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
150 hi def link trasysBlank SpecialChar
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
152 hi def link trasysEndData Macro
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
154 hi def link trasysTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
155
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 let b:current_syntax = "trasys"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 " vim: ts=8 sw=2