annotate runtime/syntax/atlas.vim @ 9530:46426dc637f6

Added tag v7.4.2045 for changeset 581d5131629f3acbf9aec2c4dcb56aa7949e34b5
author Christian Brabandt <cb@256bit.org>
date Fri, 15 Jul 2016 21:30:09 +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: ATLAS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Inaki Saez <jisaez@sfe.indra.es>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2001 May 09
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword atlasStatement begin terminate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword atlasStatement fill calculate compare
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword atlasStatement setup connect close open disconnect reset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword atlasStatement initiate read fetch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword atlasStatement apply measure verify remove
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword atlasStatement perform leave finish output delay
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword atlasStatement prepare execute
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword atlasStatement do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match atlasStatement "\<go[ ]\+to\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match atlasStatement "\<wait[ ]\+for\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword atlasInclude include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword atlasDefine define require declare identify
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 "syn keyword atlasReserved true false go nogo hi lo via
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword atlasReserved true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword atlasStorageClass external global
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword atlasConditional if then else end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword atlasRepeat while for thru
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Flags BEF and statement number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match atlasSpecial "^[BE ][ 0-9]\{,6}\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " Number formats
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match atlasHexNumber "\<X'[0-9A-F]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match atlasOctalNumber "\<O'[0-7]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match atlasBinNumber "\<B'[01]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match atlasNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 "Floating point number part only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match atlasDecimalNumber "\.\d\+\([eE][-+]\=\d\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn region atlasFormatString start=+((+ end=+\())\)\|\()[ ]*\$\)+me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn region atlasString start=+\<C'+ end=+'+ oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn region atlasComment start=+^C+ end=+\$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn region atlasComment2 start=+\$.\++ms=s+1 end=+$+ oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match atlasIdentifier "'[A-Za-z0-9 ._-]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 "Synchronization with Statement terminator $
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn sync match atlasTerminator grouphere atlasComment "^C"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn sync match atlasTerminator groupthere NONE "\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn sync maxlines=100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " 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
66 if version >= 508 || !exists("did_atlas_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 let did_atlas_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink atlasConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink atlasRepeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 HiLink atlasStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink atlasNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink atlasHexNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 HiLink atlasOctalNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink atlasBinNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink atlasDecimalNumber Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink atlasFormatString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink atlasString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink atlasComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink atlasComment2 Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink atlasInclude Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 HiLink atlasDefine Macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 HiLink atlasReserved PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 HiLink atlasStorageClass StorageClass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 HiLink atlasIdentifier NONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 HiLink atlasSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 let b:current_syntax = "atlas"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 " vim: ts=8