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

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

Issue 10831131: Dart textmate bundle updates (support for 'external' and 'as'). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | tools/utils/textmate/Dart.tmbundle/Syntaxes/Dart.tmLanguage » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { scopeName = 'source.dart'; 1 { scopeName = 'source.dart';
2 fileTypes = ( 'dart' ); 2 fileTypes = ( 'dart' );
3 foldingStartMarker = '\{\s*$'; 3 foldingStartMarker = '\{\s*$';
4 foldingStopMarker = '^\s*\}'; 4 foldingStopMarker = '^\s*\}';
5 patterns = ( 5 patterns = (
6 { name = 'meta.preprocessor.script.dart'; 6 { name = 'meta.preprocessor.script.dart';
7 match = '^(#!.*)$'; 7 match = '^(#!.*)$';
8 }, 8 },
9 { name = 'meta.declaration.dart'; 9 { name = 'meta.declaration.dart';
10 begin = '#\b(library|import|source|resource)\b'; 10 begin = '#\b(library|import|source|resource)\b';
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 { name = 'variable.language.dart'; 53 { name = 'variable.language.dart';
54 match = '\b(this|super)\b'; 54 match = '\b(this|super)\b';
55 }, 55 },
56 { name = 'constant.numeric.dart'; 56 { name = 'constant.numeric.dart';
57 match = '\b((0(x|X)[0-9a-fA-F]*)|(([0-9] +\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b'; 57 match = '\b((0(x|X)[0-9a-fA-F]*)|(([0-9] +\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b';
58 }, 58 },
59 ); 59 );
60 }; 60 };
61 keywords = { 61 keywords = {
62 patterns = ( 62 patterns = (
63 { name = 'keyword.cast.dart';
64 match = '\b(as)\b';
Bob Nystrom 2012/08/02 18:00:26 Don't need the parentheses since there's just one
pquitslund 2012/08/02 18:19:06 Right. Fixed!
65 },
63 { name = 'keyword.control.catch-exception. dart'; 66 { name = 'keyword.control.catch-exception. dart';
64 match = '\b(try|catch|finally|throw)\b'; 67 match = '\b(try|catch|finally|throw)\b';
65 }, 68 },
66 { name = 'keyword.control.ternary.dart'; 69 { name = 'keyword.control.ternary.dart';
67 match = '\?|:'; 70 match = '\?|:';
68 }, 71 },
69 { name = 'keyword.control.dart'; 72 { name = 'keyword.control.dart';
70 match = '\b(break|case|continue|default| do|else|for|if|in|return|switch|while)\b'; 73 match = '\b(break|case|continue|default| do|else|for|if|in|return|switch|while)\b';
71 }, 74 },
72 { name = 'keyword.control.new.dart'; 75 { name = 'keyword.control.new.dart';
(...skipping 23 matching lines...) Expand all
96 { name = 'keyword.operator.arithmetic.dart '; 99 { name = 'keyword.operator.arithmetic.dart ';
97 match = '(\-|\+|\*|\/|\~\/|%)'; 100 match = '(\-|\+|\*|\/|\~\/|%)';
98 }, 101 },
99 { name = 'keyword.operator.logical.dart'; 102 { name = 'keyword.operator.logical.dart';
100 match = '(!|&&|\|\|)'; 103 match = '(!|&&|\|\|)';
101 }, 104 },
102 { name = 'punctuation.terminator.dart'; 105 { name = 'punctuation.terminator.dart';
103 match = ';'; 106 match = ';';
104 }, 107 },
105 { name = 'storage.modifier.dart'; 108 { name = 'storage.modifier.dart';
106 » » » » » match = '\b(static|final|native|abstract |const|class|interface)\b'; 109 » » » » » match = '\b(static|final|native|abstract |const|class|interface|get|set|operator|external)\b';
Bob Nystrom 2012/08/02 18:00:26 Should "patch" go in here too?
pquitslund 2012/08/02 18:19:06 Hmmm... I think that's a dartp-ism and I'm not wi
107 }, 110 },
108 { name = 'storage.type.primitive.dart'; 111 { name = 'storage.type.primitive.dart';
109 match = '\b(?:void|bool|num|int|double|D ynamic|var)\b'; 112 match = '\b(?:void|bool|num|int|double|D ynamic|var)\b';
110 }, 113 },
111 ); 114 );
112 }; 115 };
113 string-interp = { 116 string-interp = {
114 patterns = ( 117 patterns = (
115 { match = '\$((\w+)|\{(\w+)\})'; 118 { match = '\$((\w+)|\{(\w+)\})';
116 captures = { 119 captures = {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 patterns = ( 172 patterns = (
170 { name = 'invalid.string.n ewline'; 173 { name = 'invalid.string.n ewline';
171 match = '\n'; 174 match = '\n';
172 }, 175 },
173 ); 176 );
174 }, 177 },
175 ); 178 );
176 }; 179 };
177 }; 180 };
178 } 181 }
OLDNEW
« no previous file with comments | « no previous file | tools/utils/textmate/Dart.tmbundle/Syntaxes/Dart.tmLanguage » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698