editors

view Euphoria.tmbundle/Syntaxes/Euphoria.tmLanguage @ 57:149815b0874c

* added installer for jEdit mode
author Shawn David Pringle B.Sc. <shawn.pringle@gmail.com>
date Fri Sep 25 00:03:32 2015 -0300 (2015-09-25)
parents d5b077700445
children
line source
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>uuid</key>
6 <string>B44EEA00-8659-421B-BD7C-9015E45CB8ED</string>
7 <key>keyEquivalent</key>
8 <string>^~E</string>
9 <key>patterns</key>
10 <array>
11 <dict>
12 <key>name</key>
13 <string>constant.numeric.standard.euphoria</string>
14 <key>match</key>
15 <string>\b[+-]?[0-9_]+\b</string>
16 </dict>
17 <dict>
18 <key>name</key>
19 <string>constant.numeric.binary.euphoria</string>
20 <key>match</key>
21 <string>\b0b[0-1_]+\b</string>
22 </dict>
23 <dict>
24 <key>name</key>
25 <string>constant.numeric.octal.euphoria</string>
26 <key>match</key>
27 <string>\b0t[0-7_]+\b</string>
28 </dict>
29 <dict>
30 <key>name</key>
31 <string>constant.numeric.decimal.euphoria</string>
32 <key>match</key>
33 <string>\b0d[0-9_]+\b</string>
34 </dict>
35 <dict>
36 <key>name</key>
37 <string>constant.numeric.hex.euphoria</string>
38 <key>match</key>
39 <string>\b0x[0-9A-Fa-f_]+\b</string>
40 </dict>
41 <dict>
42 <key>name</key>
43 <string>constant.numeric.hex-old.euphoria</string>
44 <key>match</key>
45 <string>#[0-9A-Fa-f_]+\b</string>
46 </dict>
47 <dict>
48 <key>begin</key>
49 <string>^\s*include\b</string>
50 <key>name</key>
51 <string>meta.preprocessor.include.euphoria</string>
52 <key>patterns</key>
53 <array>
54 <dict>
55 <key>name</key>
56 <string>keyword.as.euphoria</string>
57 <key>match</key>
58 <string>\bas\b</string>
59 </dict>
60 <dict>
61 <key>name</key>
62 <string>constant.quoted.filename.euphoria</string>
63 <key>match</key>
64 <string>\b[^ ]+\b</string>
65 </dict>
66 </array>
67 <key>end</key>
68 <string>$</string>
69 </dict>
70 <dict>
71 <key>name</key>
72 <string>constant.quoted.namespace.euphoria</string>
73 <key>match</key>
74 <string>\b[a-zA-Z_][A-Za-z0-9_]*:</string>
75 </dict>
76 <dict>
77 <key>name</key>
78 <string>meta.preprocessor.euphoria</string>
79 <key>match</key>
80 <string>\b(end ifdef|elsifdef|elsedef|ifdef|namespace|trace|with|without)\b</string>
81 </dict>
82 <dict>
83 <key>captures</key>
84 <dict>
85 <key>4</key>
86 <dict>
87 <key>name</key>
88 <string>entity.name.function.euphoria</string>
89 </dict>
90 </dict>
91 <key>name</key>
92 <string>keyword.control.euphoria</string>
93 <key>match</key>
94 <string>^\s*(deprecate\s+)?((override|global|public|export)\s+)?(function|procedure|type|routine)\s*([a-zA-Z_][a-zA-Z0-9_]*)</string>
95 </dict>
96 <dict>
97 <key>name</key>
98 <string>keyword.control.euphoria</string>
99 <key>match</key>
100 <string>(?x)\b(
101 and|as
102 |by
103 |case|constant
104 |deprecate|do
105 |else|elsif|end|enum
106 |for|function
107 |if
108 |loop
109 |not
110 |or
111 |procedure
112 |routine
113 |switch
114 |then|to|type
115 |until
116 |while
117 |xor
118 )\b</string>
119 </dict>
120 <dict>
121 <key>name</key>
122 <string>keyword.jump.euphoria</string>
123 <key>match</key>
124 <string>\b(abort|break|continue|crash|entry|exit|fallthru|goto|label|return|retry)</string>
125 </dict>
126 <dict>
127 <key>name</key>
128 <string>storage.type.euphoria</string>
129 <key>match</key>
130 <string>\b(object|sequence|integer|atom)\b</string>
131 </dict>
132 <dict>
133 <key>name</key>
134 <string>storage.modifier.access-control.euphoria</string>
135 <key>match</key>
136 <string>\b(override|global|public|export)\b</string>
137 </dict>
138 <dict>
139 <key>name</key>
140 <string>constant.other.euphoria</string>
141 <key>match</key>
142 <string>\b[A-Z0-9_]+\b</string>
143 </dict>
144 <dict>
145 <key>begin</key>
146 <string>"""</string>
147 <key>name</key>
148 <string>string.quoted.triple.euphoria</string>
149 <key>end</key>
150 <string>"""</string>
151 </dict>
152 <dict>
153 <key>begin</key>
154 <string>`</string>
155 <key>name</key>
156 <string>string.quoted.backtick.euphoria</string>
157 <key>end</key>
158 <string>`</string>
159 </dict>
160 <dict>
161 <key>begin</key>
162 <string>"</string>
163 <key>endCaptures</key>
164 <dict>
165 <key>0</key>
166 <dict>
167 <key>name</key>
168 <string>punctuation.definition.string.end.euphoria</string>
169 </dict>
170 </dict>
171 <key>beginCaptures</key>
172 <dict>
173 <key>0</key>
174 <dict>
175 <key>name</key>
176 <string>punctuation.definition.string.begin.euphoria</string>
177 </dict>
178 </dict>
179 <key>name</key>
180 <string>string.quoted.double.euphoria</string>
181 <key>patterns</key>
182 <array>
183 <dict>
184 <key>include</key>
185 <string>#string_escaped_char</string>
186 </dict>
187 </array>
188 <key>end</key>
189 <string>"</string>
190 </dict>
191 <dict>
192 <key>begin</key>
193 <string>'</string>
194 <key>endCaptures</key>
195 <dict>
196 <key>0</key>
197 <dict>
198 <key>name</key>
199 <string>punctuation.definition.string.end.euphoria</string>
200 </dict>
201 </dict>
202 <key>beginCaptures</key>
203 <dict>
204 <key>0</key>
205 <dict>
206 <key>name</key>
207 <string>punctuation.definition.string.begin.euphoria</string>
208 </dict>
209 </dict>
210 <key>name</key>
211 <string>string.quoted.single.euphoria</string>
212 <key>patterns</key>
213 <array>
214 <dict>
215 <key>include</key>
216 <string>#string_escaped_char</string>
217 </dict>
218 </array>
219 <key>end</key>
220 <string>'</string>
221 </dict>
222 <dict>
223 <key>begin</key>
224 <string>\s*--\*\*</string>
225 <key>name</key>
226 <string>comment.line.eudoc.euphoria</string>
227 <key>patterns</key>
228 <array>
229 <dict>
230 <key>name</key>
231 <string>keyword.other.documentation.section.eudoc.euphoria</string>
232 <key>match</key>
233 <string>[A-Za-z0-9\s]+:\s*$</string>
234 </dict>
235 <dict>
236 <key>name</key>
237 <string>keyword.other.documentation.bold.eudoc.euphoria</string>
238 <key>match</key>
239 <string>\*\*[^*]+\*\*</string>
240 </dict>
241 <dict>
242 <key>name</key>
243 <string>keyword.other.documentation.fixed.eudoc.euphoria</string>
244 <key>match</key>
245 <string>\#\#[^*]+\#\#</string>
246 </dict>
247 <dict>
248 <key>begin</key>
249 <string>\[\[</string>
250 <key>name</key>
251 <string>keyword.other.documentation.link.eudoc.euphoria</string>
252 <key>end</key>
253 <string>\]\]</string>
254 </dict>
255 </array>
256 <key>end</key>
257 <string>^\s*[^-]</string>
258 </dict>
259 <dict>
260 <key>begin</key>
261 <string>/\*</string>
262 <key>captures</key>
263 <dict>
264 <key>0</key>
265 <dict>
266 <key>name</key>
267 <string>punctuation.definition.comment.euphoria</string>
268 </dict>
269 </dict>
270 <key>name</key>
271 <string>comment.block.euphoria</string>
272 <key>end</key>
273 <string>\*/</string>
274 </dict>
275 <dict>
276 <key>captures</key>
277 <dict>
278 <key>1</key>
279 <dict>
280 <key>name</key>
281 <string>punctuation.definition.comment.euphoria</string>
282 </dict>
283 </dict>
284 <key>name</key>
285 <string>comment.line.double-dash.euphoria</string>
286 <key>match</key>
287 <string>(--).*$\n?</string>
288 </dict>
289 </array>
290 <key>name</key>
291 <string>Euphoria</string>
292 <key>scopeName</key>
293 <string>source.euphoria</string>
294 <key>fileTypes</key>
295 <array>
296 <string>e</string>
297 <string>ex</string>
298 <string>exw</string>
299 <string>exu</string>
300 </array>
301 <key>repository</key>
302 <dict>
303 <key>string_escaped_char</key>
304 <dict>
305 <key>patterns</key>
306 <array>
307 <dict>
308 <key>name</key>
309 <string>constant.character.escape.euphoria</string>
310 <key>match</key>
311 <string>\\(\\|[nrte'"0?]|[0-3]\d{2}|[4-7]\d?|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8}|b[0-1]+)</string>
312 </dict>
313 <dict>
314 <key>name</key>
315 <string>invalid.illegal.unknown-escape.euphoria</string>
316 <key>match</key>
317 <string>\\.</string>
318 </dict>
319 </array>
320 </dict>
321 </dict>
322 <key>firstLineMatch</key>
323 <string>^#!/.*\beui(w)?\b</string>
324 </dict>
325 </plist>

SCM Home | OpenEuphoria.org Home