4 # For the proper syntax highlight the order of the keywords are
5 # important. This is why the related keywords are not listed in a block.
6 # To create semantic relationship between the keywords I used groups.
7 # Some keywords are in a group (the name of the group is
8 # indicated in a commented line above the keyword definition)
10 # With the one-liner for example we could replace
11 # the color of the keywords which are the members of the
12 # "Sequences" group from "yellow" to "red"...
14 # echo Sequences yellow red | xargs -l bash -c 'sed -z "s/\(# $0\n[^\n]*\)$1/\1$2/g" b.syntax'
23 # Relations, Sequences, Logical, Arithmetic, Sets, Substitutions
26 # described in the Syntax file
30 keyword whole ABSTRACT_CONSTANTS yellow
31 keyword whole ABSTRACT_VARIABLES yellow
32 keyword whole CONCRETE_CONSTANTS yellow
33 keyword whole CONCRETE_VARIABLES yellow
34 keyword whole LOCAL_OPERATIONS yellow
35 keyword whole IMPLEMENTATION yellow
36 keyword whole INITIALISATION yellow
37 keyword whole CONSTRAINTS yellow
38 keyword whole DEFINITIONS yellow
39 keyword whole ASSERTIONS yellow
40 keyword whole OPERATIONS yellow
41 keyword whole PROPERTIES yellow
42 keyword whole REFINEMENT yellow
43 keyword whole CONSTANTS yellow
44 keyword whole INVARIANT yellow
45 keyword whole sequences yellow
46 keyword whole VARIABLES yellow
47 keyword whole Cardinal yellow
50 keyword whole closure1 white
52 keyword whole INCLUDES yellow
55 keyword whole NATURAL1 yellow
57 keyword whole PROMOTES yellow
58 keyword whole Boolean yellow
59 keyword whole EXTENDS yellow
60 keyword whole IMPORTS yellow
63 keyword whole INTEGER yellow
65 keyword whole iterate yellow
66 keyword whole MACHINE yellow
69 keyword whole NATURAL yellow
71 keyword whole postfix yellow
72 keyword whole REFINES yellow
73 keyword whole subtree yellow
74 keyword whole VARIANT yellow
75 keyword whole ASSERT yellow
76 keyword whole CHOICE yellow
79 keyword whole closure white
81 keyword whole EITHER yellow
82 keyword whole father yellow
83 keyword whole MAXINT yellow
84 keyword whole MININT yellow
85 keyword whole mirror yellow
86 keyword whole modulo yellow
87 keyword whole prefix yellow
88 keyword whole SELECT yellow
89 keyword whole STRING yellow
90 keyword whole struct yellow
91 keyword whole VALUES yellow
92 keyword whole arity yellow
93 keyword whole BEGIN yellow
94 keyword whole btree yellow
95 keyword whole const yellow
96 keyword whole ELSIF yellow
97 keyword whole FALSE yellow
98 keyword whole first yellow
99 keyword whole front yellow
100 keyword whole infix yellow
103 keyword whole INTER yellow
105 keyword whole inter yellow
106 keyword whole iseq1 yellow
107 keyword whole right yellow
110 keyword whole SIGMA yellow
112 keyword whole sizet yellow
115 keyword whole UNION yellow
117 keyword whole union yellow
118 keyword whole WHERE yellow
119 keyword whole WHILE yellow
120 keyword whole bool yellow
121 keyword whole BOOL yellow
122 keyword whole card yellow
123 keyword whole CASE yellow
124 keyword whole conc yellow
125 keyword whole ELSE yellow
128 keyword whole FIN1 yellow
130 keyword whole iseq yellow
131 keyword whole last yellow
132 keyword whole left yellow
133 keyword whole NAT1 yellow
136 keyword whole POW1 yellow
138 keyword whole perm yellow
139 keyword whole pred yellow
140 keyword whole prj1 yellow
141 keyword whole prj2 yellow
142 keyword whole rank yellow
143 keyword whole SEES yellow
144 keyword whole seq1 yellow
145 keyword whole SETS yellow
146 keyword whole size yellow
147 keyword whole skip yellow
148 keyword whole sons yellow
149 keyword whole succ yellow
150 keyword whole tail yellow
151 keyword whole THEN yellow
152 keyword whole tree yellow
153 keyword whole TRUE yellow
154 keyword whole USES yellow
155 keyword whole WHEN yellow
156 keyword whole ANY yellow
157 keyword whole bin yellow
158 keyword whole dom yellow
159 keyword whole END yellow
162 keyword whole FIN yellow
164 keyword whole fnc yellow
165 keyword whole INT yellow
166 keyword whole LET yellow
167 keyword whole max yellow
168 keyword whole min yellow
169 keyword whole mod yellow
170 keyword whole NAT yellow
173 keyword whole not cyan
176 keyword whole POW yellow
178 keyword whole PRE yellow
179 keyword whole ran yellow
180 keyword whole rec yellow
181 keyword whole rel yellow
182 keyword whole rev yellow
183 keyword whole seq yellow
184 keyword whole Set yellow
185 keyword whole son yellow
186 keyword whole top yellow
187 keyword whole VAR yellow
188 keyword whole BE yellow
189 keyword whole DO yellow
190 keyword whole id yellow
191 keyword whole IF yellow
192 keyword whole IN yellow
193 keyword whole OF yellow
194 keyword whole OR yellow
197 keyword whole or cyan
200 keyword whole PI yellow
202 # prevents - keyword from interfering with comment
376 context exclusive /\* \*/ green
379 context exclusive // \n green
382 context " " brightgreen