annotate runtime/syntax/atlas.vim @ 10528:3ea703795a4f v8.0.0154

commit https://github.com/vim/vim/commit/31f19ce0a052f7c76d44a9a190e468c79cf5d56d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 8 14:14:43 2017 +0100 patch 8.0.0154: system() test fails on OS/X Problem: system() test fails on OS/X. Solution: Deal with leading spaces.
author Christian Brabandt <cb@256bit.org>
date Sun, 08 Jan 2017 14:15:04 +0100
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: 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
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
6 " 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
7 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syn keyword atlasStatement begin terminate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn keyword atlasStatement fill calculate compare
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword atlasStatement setup connect close open disconnect reset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword atlasStatement initiate read fetch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword atlasStatement apply measure verify remove
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword atlasStatement perform leave finish output delay
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword atlasStatement prepare execute
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword atlasStatement do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match atlasStatement "\<go[ ]\+to\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match atlasStatement "\<wait[ ]\+for\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword atlasInclude include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword atlasDefine define require declare identify
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 "syn keyword atlasReserved true false go nogo hi lo via
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword atlasReserved true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword atlasStorageClass external global
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword atlasConditional if then else end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword atlasRepeat while for thru
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Flags BEF and statement number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match atlasSpecial "^[BE ][ 0-9]\{,6}\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Number formats
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match atlasHexNumber "\<X'[0-9A-F]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match atlasOctalNumber "\<O'[0-7]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match atlasBinNumber "\<B'[01]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match atlasNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 "Floating point number part only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match atlasDecimalNumber "\.\d\+\([eE][-+]\=\d\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn region atlasFormatString start=+((+ end=+\())\)\|\()[ ]*\$\)+me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn region atlasString start=+\<C'+ end=+'+ oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn region atlasComment start=+^C+ end=+\$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn region atlasComment2 start=+\$.\++ms=s+1 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 match atlasIdentifier "'[A-Za-z0-9 ._-]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 "Synchronization with Statement terminator $
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn sync match atlasTerminator grouphere atlasComment "^C"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn sync match atlasTerminator groupthere NONE "\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn sync maxlines=100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
61 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
63 hi def link atlasConditional Conditional
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
64 hi def link atlasRepeat Repeat
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
65 hi def link atlasStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
66 hi def link atlasNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
67 hi def link atlasHexNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
68 hi def link atlasOctalNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
69 hi def link atlasBinNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
70 hi def link atlasDecimalNumber Float
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
71 hi def link atlasFormatString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
72 hi def link atlasString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
73 hi def link atlasComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
74 hi def link atlasComment2 Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
75 hi def link atlasInclude Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
76 hi def link atlasDefine Macro
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
77 hi def link atlasReserved PreCondit
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
78 hi def link atlasStorageClass StorageClass
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
79 hi def link atlasIdentifier NONE
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
80 hi def link atlasSpecial Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 let b:current_syntax = "atlas"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 " vim: ts=8