Mercurial > vim
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 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: ATLAS | |
3 " Maintainer: Inaki Saez <jisaez@sfe.indra.es> | |
4 " Last Change: 2001 May 09 | |
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 | 8 finish |
9 endif | |
10 | |
11 syn case ignore | |
12 | |
13 syn keyword atlasStatement begin terminate | |
14 syn keyword atlasStatement fill calculate compare | |
15 syn keyword atlasStatement setup connect close open disconnect reset | |
16 syn keyword atlasStatement initiate read fetch | |
17 syn keyword atlasStatement apply measure verify remove | |
18 syn keyword atlasStatement perform leave finish output delay | |
19 syn keyword atlasStatement prepare execute | |
20 syn keyword atlasStatement do | |
21 syn match atlasStatement "\<go[ ]\+to\>" | |
22 syn match atlasStatement "\<wait[ ]\+for\>" | |
23 | |
24 syn keyword atlasInclude include | |
25 syn keyword atlasDefine define require declare identify | |
26 | |
27 "syn keyword atlasReserved true false go nogo hi lo via | |
28 syn keyword atlasReserved true false | |
29 | |
30 syn keyword atlasStorageClass external global | |
31 | |
32 syn keyword atlasConditional if then else end | |
33 syn keyword atlasRepeat while for thru | |
34 | |
35 " Flags BEF and statement number | |
36 syn match atlasSpecial "^[BE ][ 0-9]\{,6}\>" | |
37 | |
38 " Number formats | |
39 syn match atlasHexNumber "\<X'[0-9A-F]\+'" | |
40 syn match atlasOctalNumber "\<O'[0-7]\+'" | |
41 syn match atlasBinNumber "\<B'[01]\+'" | |
42 syn match atlasNumber "\<\d\+\>" | |
43 "Floating point number part only | |
44 syn match atlasDecimalNumber "\.\d\+\([eE][-+]\=\d\)\=\>" | |
45 | |
46 syn region atlasFormatString start=+((+ end=+\())\)\|\()[ ]*\$\)+me=e-1 | |
47 syn region atlasString start=+\<C'+ end=+'+ oneline | |
48 | |
49 syn region atlasComment start=+^C+ end=+\$+ | |
50 syn region atlasComment2 start=+\$.\++ms=s+1 end=+$+ oneline | |
51 | |
52 syn match atlasIdentifier "'[A-Za-z0-9 ._-]\+'" | |
53 | |
54 "Synchronization with Statement terminator $ | |
55 syn sync match atlasTerminator grouphere atlasComment "^C" | |
56 syn sync match atlasTerminator groupthere NONE "\$" | |
57 syn sync maxlines=100 | |
58 | |
59 | |
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 | 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 | 81 |
82 | |
83 let b:current_syntax = "atlas" | |
84 | |
85 " vim: ts=8 |