Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: tools/utils/textmate/Dart.tmbundle/Syntaxes/Dart.tmLanguage

Issue 8321007: Create minimal TextMate mode for Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added a readme for Textmate mode. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/ PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>fileTypes</key>
6 <array>
7 <string>dart</string>
8 </array>
9 <key>foldingStartMarker</key>
10 <string>\{\s*$</string>
11 <key>foldingStopMarker</key>
12 <string>^\s*\}</string>
13 <key>name</key>
14 <string>Dart</string>
15 <key>patterns</key>
16 <array>
17 <dict>
18 <key>match</key>
19 <string>^(#!.*)$</string>
20 <key>name</key>
21 <string>meta.preprocessor.script.dart</string>
22 </dict>
23 <dict>
24 <key>begin</key>
25 <string>#\b(library|import|source|resource)\b</string>
26 <key>beginCaptures</key>
27 <dict>
28 <key>0</key>
29 <dict>
30 <key>name</key>
31 <string>keyword.other.import.dart</strin g>
32 </dict>
33 </dict>
34 <key>end</key>
35 <string>;</string>
36 <key>endCaptures</key>
37 <dict>
38 <key>0</key>
39 <dict>
40 <key>name</key>
41 <string>punctuation.terminator.dart</str ing>
42 </dict>
43 </dict>
44 <key>name</key>
45 <string>meta.declaration.dart</string>
46 <key>patterns</key>
47 <array>
48 <dict>
49 <key>include</key>
50 <string>#strings</string>
51 </dict>
52 <dict>
53 <key>captures</key>
54 <dict>
55 <key>1</key>
56 <dict>
57 <key>name</key>
58 <string>keyword.other.im port.dart</string>
59 </dict>
60 </dict>
61 <key>match</key>
62 <string>\b(prefix)\s*:</string>
63 </dict>
64 </array>
65 </dict>
66 <dict>
67 <key>include</key>
68 <string>#comments</string>
69 </dict>
70 <dict>
71 <key>include</key>
72 <string>#constants-and-special-vars</string>
73 </dict>
74 <dict>
75 <key>include</key>
76 <string>#keywords</string>
77 </dict>
78 <dict>
79 <key>include</key>
80 <string>#strings</string>
81 </dict>
82 </array>
83 <key>repository</key>
84 <dict>
85 <key>comments</key>
86 <dict>
87 <key>patterns</key>
88 <array>
89 <dict>
90 <key>captures</key>
91 <dict>
92 <key>0</key>
93 <dict>
94 <key>name</key>
95 <string>punctuation.defi nition.comment.dart</string>
96 </dict>
97 </dict>
98 <key>match</key>
99 <string>/\*\*/</string>
100 <key>name</key>
101 <string>comment.block.empty.dart</string >
102 </dict>
103 <dict>
104 <key>include</key>
105 <string>text.html.javadoc</string>
106 </dict>
107 <dict>
108 <key>include</key>
109 <string>#comments-inline</string>
110 </dict>
111 </array>
112 </dict>
113 <key>comments-inline</key>
114 <dict>
115 <key>patterns</key>
116 <array>
117 <dict>
118 <key>begin</key>
119 <string>/\*</string>
120 <key>end</key>
121 <string>\*/</string>
122 <key>name</key>
123 <string>comment.block.dart</string>
124 </dict>
125 <dict>
126 <key>captures</key>
127 <dict>
128 <key>1</key>
129 <dict>
130 <key>name</key>
131 <string>comment.line.dou ble-slash.dart</string>
132 </dict>
133 </dict>
134 <key>match</key>
135 <string>((//).*)$</string>
136 </dict>
137 </array>
138 </dict>
139 <key>constants-and-special-vars</key>
140 <dict>
141 <key>patterns</key>
142 <array>
143 <dict>
144 <key>match</key>
145 <string>\b(true|false|null)\b</string>
146 <key>name</key>
147 <string>constant.language.dart</string>
148 </dict>
149 <dict>
150 <key>match</key>
151 <string>\b(this|super)\b</string>
152 <key>name</key>
153 <string>variable.language.dart</string>
154 </dict>
155 <dict>
156 <key>match</key>
157 <string>\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+ \.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b</string>
158 <key>name</key>
159 <string>constant.numeric.dart</string>
160 </dict>
161 </array>
162 </dict>
163 <key>keywords</key>
164 <dict>
165 <key>patterns</key>
166 <array>
167 <dict>
168 <key>match</key>
169 <string>\b(try|catch|finally|throw)\b</s tring>
170 <key>name</key>
171 <string>keyword.control.catch-exception. dart</string>
172 </dict>
173 <dict>
174 <key>match</key>
175 <string>\?|:</string>
176 <key>name</key>
177 <string>keyword.control.ternary.dart</st ring>
178 </dict>
179 <dict>
180 <key>match</key>
181 <string>\b(break|case|continue|default|d o|else|for|if|in|return|switch|while)\b</string>
182 <key>name</key>
183 <string>keyword.control.dart</string>
184 </dict>
185 <dict>
186 <key>match</key>
187 <string>\b(new)\b</string>
188 <key>name</key>
189 <string>keyword.control.new.dart</string >
190 </dict>
191 <dict>
192 <key>match</key>
193 <string>\b(is\!?)\b</string>
194 <key>name</key>
195 <string>keyword.operator.dart</string>
196 </dict>
197 <dict>
198 <key>match</key>
199 <string>(&lt;&lt;|&gt;&gt;&gt;?|~|\^|\|| &amp;)</string>
200 <key>name</key>
201 <string>keyword.operator.bitwise.dart</s tring>
202 </dict>
203 <dict>
204 <key>match</key>
205 <string>((&amp;|\^|\||&lt;&lt;|&gt;&gt;& gt;?)=)</string>
206 <key>name</key>
207 <string>keyword.operator.assignment.bitw ise.dart</string>
208 </dict>
209 <dict>
210 <key>match</key>
211 <string>(===?|!==?|&lt;=?|&gt;=?)</strin g>
212 <key>name</key>
213 <string>keyword.operator.comparison.dart </string>
214 </dict>
215 <dict>
216 <key>match</key>
217 <string>(([+*/%-]|\~)=)</string>
218 <key>name</key>
219 <string>keyword.operator.assignment.arit hmetic.dart</string>
220 </dict>
221 <dict>
222 <key>match</key>
223 <string>(=)</string>
224 <key>name</key>
225 <string>keyword.operator.assignment.dart </string>
226 </dict>
227 <dict>
228 <key>match</key>
229 <string>(\-\-|\+\+)</string>
230 <key>name</key>
231 <string>keyword.operator.increment-decre ment.dart</string>
232 </dict>
233 <dict>
234 <key>match</key>
235 <string>(\-|\+|\*|\/|\~\/|%)</string>
236 <key>name</key>
237 <string>keyword.operator.arithmetic.dart </string>
238 </dict>
239 <dict>
240 <key>match</key>
241 <string>(!|&amp;&amp;|\|\|)</string>
242 <key>name</key>
243 <string>keyword.operator.logical.dart</s tring>
244 </dict>
245 <dict>
246 <key>match</key>
247 <string>;</string>
248 <key>name</key>
249 <string>punctuation.terminator.dart</str ing>
250 </dict>
251 <dict>
252 <key>match</key>
253 <string>\b(static|final|native|abstract| const|class|interface)\b</string>
254 <key>name</key>
255 <string>storage.modifier.dart</string>
256 </dict>
257 <dict>
258 <key>match</key>
259 <string>\b(?:void|bool|num|int|double|Dy namic|var)\b</string>
260 <key>name</key>
261 <string>storage.type.primitive.dart</str ing>
262 </dict>
263 </array>
264 </dict>
265 <key>string-interp</key>
266 <dict>
267 <key>patterns</key>
268 <array>
269 <dict>
270 <key>captures</key>
271 <dict>
272 <key>2</key>
273 <dict>
274 <key>name</key>
275 <string>variable.paramet er.dart</string>
276 </dict>
277 <key>3</key>
278 <dict>
279 <key>name</key>
280 <string>variable.paramet er.dart</string>
281 </dict>
282 </dict>
283 <key>match</key>
284 <string>\$((\w+)|\{(\w+)\})</string>
285 </dict>
286 <dict>
287 <key>match</key>
288 <string>\\.</string>
289 <key>name</key>
290 <string>constant.character.escape.dart</ string>
291 </dict>
292 </array>
293 </dict>
294 <key>strings</key>
295 <dict>
296 <key>patterns</key>
297 <array>
298 <dict>
299 <key>begin</key>
300 <string>(?&lt;!@)"""</string>
301 <key>end</key>
302 <string>"""(?!")</string>
303 <key>name</key>
304 <string>string.interpolated.triple.dart< /string>
305 <key>patterns</key>
306 <array>
307 <dict>
308 <key>include</key>
309 <string>#string-interp</ string>
310 </dict>
311 </array>
312 </dict>
313 <dict>
314 <key>begin</key>
315 <string>@"""</string>
316 <key>end</key>
317 <string>"""(?!")</string>
318 <key>name</key>
319 <string>string.quoted.triple.dart</strin g>
320 </dict>
321 <dict>
322 <key>begin</key>
323 <string>(?&lt;!\\|@)"</string>
324 <key>end</key>
325 <string>"</string>
326 <key>name</key>
327 <string>string.interpolated.double.dart< /string>
328 <key>patterns</key>
329 <array>
330 <dict>
331 <key>match</key>
332 <string>\n</string>
333 <key>name</key>
334 <string>invalid.string.n ewline</string>
335 </dict>
336 <dict>
337 <key>include</key>
338 <string>#string-interp</ string>
339 </dict>
340 </array>
341 </dict>
342 <dict>
343 <key>begin</key>
344 <string>@"</string>
345 <key>end</key>
346 <string>"</string>
347 <key>name</key>
348 <string>string.quoted.double.dart</strin g>
349 <key>patterns</key>
350 <array>
351 <dict>
352 <key>match</key>
353 <string>\n</string>
354 <key>name</key>
355 <string>invalid.string.n ewline</string>
356 </dict>
357 </array>
358 </dict>
359 <dict>
360 <key>begin</key>
361 <string>(?&lt;!\|@)'</string>
362 <key>end</key>
363 <string>'</string>
364 <key>name</key>
365 <string>string.interpolated.single.dart< /string>
366 <key>patterns</key>
367 <array>
368 <dict>
369 <key>match</key>
370 <string>\n</string>
371 <key>name</key>
372 <string>invalid.string.n ewline</string>
373 </dict>
374 <dict>
375 <key>include</key>
376 <string>#string-interp</ string>
377 </dict>
378 </array>
379 </dict>
380 <dict>
381 <key>begin</key>
382 <string>@'</string>
383 <key>end</key>
384 <string>'</string>
385 <key>name</key>
386 <string>string.quoted.single.dart</strin g>
387 <key>patterns</key>
388 <array>
389 <dict>
390 <key>match</key>
391 <string>\n</string>
392 <key>name</key>
393 <string>invalid.string.n ewline</string>
394 </dict>
395 </array>
396 </dict>
397 </array>
398 </dict>
399 </dict>
400 <key>scopeName</key>
401 <string>source.dart</string>
402 <key>uuid</key>
403 <string>958518BC-799F-477A-99F9-5B28EBF230F6</string>
404 </dict>
405 </plist>
OLDNEW
« no previous file with comments | « tools/utils/textmate/Dart.tmbundle/Syntaxes/Dart.textmate ('k') | tools/utils/textmate/Dart.tmbundle/info.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698