annotate runtime/syntax/sinda.vim @ 8800:f57949e1e9f1 v7.4.1688

commit https://github.com/vim/vim/commit/67c2c058ea34628bd575aac7ddba4cd3b244ed57 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 30 22:03:02 2016 +0200 patch 7.4.1688 Problem: MzScheme does not support partial. Solution: Add minimal partial support. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Mar 2016 22:15:10 +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: sinda85, sinda/fluint 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: *.sin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://www.naglenet.org/vim/syntax/sinda.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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Ignore case
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn case ignore
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " Begin syntax definitions for sinda input and output files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Force free-form fortran format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 let fortran_free_source=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Load FORTRAN syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 source <sfile>:p:h/fortran.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 runtime! syntax/fortran.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Define keywords for SINDA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword sindaMacro BUILD BUILDF DEBON DEBOFF DEFMOD FSTART FSTOP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword sindaOptions TITLE PPSAVE RSI RSO OUTPUT SAVE QMAP USER1 USER2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword sindaOptions MODEL PPOUT NOLIST MLINE NODEBUG DIRECTORIES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword sindaOptions DOUBLEPR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword sindaRoutine FORWRD FWDBCK STDSTL FASTIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword sindaControl ABSZRO ACCELX ACCELY ACCELZ ARLXCA ATMPCA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword sindaControl BACKUP CSGFAC DRLXCA DTIMEH DTIMEI DTIMEL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword sindaControl DTIMES DTMPCA EBALNA EBALSA EXTLIM ITEROT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword sindaControl ITERXT ITHOLD NLOOPS NLOOPT OUTPUT OPEITR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword sindaControl PATMOS SIGMA TIMEO TIMEND UID
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword sindaSubRoutine ASKERS ADARIN ADDARY ADDMOD ARINDV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword sindaSubRoutine RYINV ARYMPY ARYSUB ARYTRN BAROC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword sindaSubRoutine BELACC BNDDRV BNDGET CHENNB CHGFLD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword sindaSubRoutine CHGLMP CHGSUC CHGVOL CHKCHL CHKCHP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword sindaSubRoutine CNSTAB COMBAL COMPLQ COMPRS CONTRN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword sindaSubRoutine CPRINT CRASH CRVINT CRYTRN CSIFLX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword sindaSubRoutine CVTEMP D11CYL C11DAI D11DIM D11MCY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword sindaSubRoutine D11MDA D11MDI D11MDT D12CYL D12MCY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword sindaSubRoutine D12MDA D1D1DA D1D1IM D1D1WM D1D2DA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword sindaSubRoutine D1D2WM D1DEG1 D1DEG2 D1DG1I D1IMD1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword sindaSubRoutine D1IMIM D1IMWM D1M1DA D1M2MD D1M2WM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword sindaSubRoutine D1MDG1 D1MDG2 D2D1WM D1DEG1 D2DEG2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword sindaSubRoutine D2D2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword sindaIdentifier BIV CAL DIM DIV DPM DPV DTV GEN PER PIV PIM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword sindaIdentifier SIM SIV SPM SPV TVS TVD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " Define matches for SINDA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn match sindaFortran "^F[0-9 ]"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn match sindaMotran "^M[0-9 ]"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn match sindaComment "^C.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn match sindaComment "^R.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn match sindaComment "\$.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn match sindaHeader "^header[^,]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn match sindaIncludeFile "include \+[^ ]\+"hs=s+8 contains=fortranInclude
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn match sindaMacro "^PSTART"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn match sindaMacro "^PSTOP"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn match sindaMacro "^FAC"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn match sindaInteger "-\=\<[0-9]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn match sindaFloat "-\=\<[0-9]*\.[0-9]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn match sindaScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn match sindaEndData "^END OF DATA"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 if exists("thermal_todo")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 execute 'syn match sindaTodo ' . '"^'.thermal_todo.'.*$"'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn match sindaTodo "^?.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 " Define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 " 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
111 if version >= 508 || !exists("did_sinda_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 let did_sinda_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 HiLink sindaMacro Macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 HiLink sindaOptions Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 HiLink sindaRoutine Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 HiLink sindaControl Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 HiLink sindaSubRoutine Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 HiLink sindaIdentifier Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 HiLink sindaFortran PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 HiLink sindaMotran PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 HiLink sindaComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 HiLink sindaHeader Typedef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 HiLink sindaIncludeFile Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 HiLink sindaInteger Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 HiLink sindaFloat Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 HiLink sindaScientific Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 HiLink sindaEndData Macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 HiLink sindaTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 let b:current_syntax = "sinda"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 " vim: ts=8 sw=2