xref: /vim-8.2.3635/runtime/syntax/atlas.vim (revision f37506f6)
1" Vim syntax file
2" Language:	ATLAS
3" Maintainer:	Inaki Saez <[email protected]>
4" Last Change:	2001 May 09
5
6" quit when a syntax file was already loaded
7if exists("b:current_syntax")
8  finish
9endif
10
11syn case ignore
12
13syn keyword atlasStatement	begin terminate
14syn keyword atlasStatement	fill calculate compare
15syn keyword atlasStatement	setup connect close open disconnect reset
16syn keyword atlasStatement	initiate read fetch
17syn keyword atlasStatement	apply measure verify remove
18syn keyword atlasStatement	perform leave finish output delay
19syn keyword atlasStatement	prepare execute
20syn keyword atlasStatement	do
21syn match atlasStatement	"\<go[	 ]\+to\>"
22syn match atlasStatement	"\<wait[	 ]\+for\>"
23
24syn keyword atlasInclude	include
25syn keyword atlasDefine		define require declare identify
26
27"syn keyword atlasReserved	true false go nogo hi lo via
28syn keyword atlasReserved	true false
29
30syn keyword atlasStorageClass	external global
31
32syn keyword atlasConditional	if then else end
33syn keyword atlasRepeat		while for thru
34
35" Flags BEF and statement number
36syn match atlasSpecial		"^[BE ][ 0-9]\{,6}\>"
37
38" Number formats
39syn match atlasHexNumber	"\<X'[0-9A-F]\+'"
40syn match atlasOctalNumber	"\<O'[0-7]\+'"
41syn match atlasBinNumber	"\<B'[01]\+'"
42syn match atlasNumber		"\<\d\+\>"
43"Floating point number part only
44syn match atlasDecimalNumber	"\.\d\+\([eE][-+]\=\d\)\=\>"
45
46syn region atlasFormatString	start=+((+	end=+\())\)\|\()[	 ]*\$\)+me=e-1
47syn region atlasString		start=+\<C'+	end=+'+   oneline
48
49syn region atlasComment		start=+^C+	end=+\$+
50syn region atlasComment2	start=+\$.\++ms=s+1	end=+$+ oneline
51
52syn match  atlasIdentifier	"'[A-Za-z0-9 ._-]\+'"
53
54"Synchronization with Statement terminator $
55syn sync match atlasTerminator	grouphere atlasComment "^C"
56syn sync match atlasTerminator	groupthere NONE "\$"
57syn sync maxlines=100
58
59
60" Define the default highlighting.
61" Only when an item doesn't have highlighting yet
62
63hi def link atlasConditional	Conditional
64hi def link atlasRepeat		Repeat
65hi def link atlasStatement	Statement
66hi def link atlasNumber		Number
67hi def link atlasHexNumber	Number
68hi def link atlasOctalNumber	Number
69hi def link atlasBinNumber	Number
70hi def link atlasDecimalNumber	Float
71hi def link atlasFormatString	String
72hi def link atlasString		String
73hi def link atlasComment		Comment
74hi def link atlasComment2		Comment
75hi def link atlasInclude		Include
76hi def link atlasDefine		Macro
77hi def link atlasReserved		PreCondit
78hi def link atlasStorageClass	StorageClass
79hi def link atlasIdentifier	NONE
80hi def link atlasSpecial		Special
81
82
83let b:current_syntax = "atlas"
84
85" vim: ts=8
86