annotate runtime/syntax/trasys.vim @ 7034:e668b160ac68 v7.4.830

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