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

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

Issue 10829172: Textmate dart bundle updates (more keywords and some reorg). (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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 }, 68 },
69 { name = 'keyword.control.ternary.dart'; 69 { name = 'keyword.control.ternary.dart';
70 match = '\?|:'; 70 match = '\?|:';
71 }, 71 },
72 { name = 'keyword.control.dart'; 72 { name = 'keyword.control.dart';
73 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';
74 }, 74 },
75 { name = 'keyword.control.new.dart'; 75 { name = 'keyword.control.new.dart';
76 match = '\b(new)\b'; 76 match = '\b(new)\b';
77 }, 77 },
78 { name = 'keyword.declaration.dart';
79 match = '\b(abstract|class|extends|exter nal|factory|implements|interface|get|native|operator|set|typedef)\b';
80 },
78 { name = 'keyword.operator.dart'; 81 { name = 'keyword.operator.dart';
79 match = '\b(is\!?)\b'; 82 match = '\b(is\!?)\b';
80 }, 83 },
81 { name = 'keyword.operator.bitwise.dart'; 84 { name = 'keyword.operator.bitwise.dart';
82 match = '(<<|>>>?|~|\^|\||&)'; 85 match = '(<<|>>>?|~|\^|\||&)';
83 }, 86 },
84 { name = 'keyword.operator.assignment.bitw ise.dart'; 87 { name = 'keyword.operator.assignment.bitw ise.dart';
85 match = '((&|\^|\||<<|>>>?)=)'; 88 match = '((&|\^|\||<<|>>>?)=)';
86 }, 89 },
87 { name = 'keyword.operator.comparison.dart '; 90 { name = 'keyword.operator.comparison.dart ';
(...skipping 11 matching lines...) Expand all
99 { name = 'keyword.operator.arithmetic.dart '; 102 { name = 'keyword.operator.arithmetic.dart ';
100 match = '(\-|\+|\*|\/|\~\/|%)'; 103 match = '(\-|\+|\*|\/|\~\/|%)';
101 }, 104 },
102 { name = 'keyword.operator.logical.dart'; 105 { name = 'keyword.operator.logical.dart';
103 match = '(!|&&|\|\|)'; 106 match = '(!|&&|\|\|)';
104 }, 107 },
105 { name = 'punctuation.terminator.dart'; 108 { name = 'punctuation.terminator.dart';
106 match = ';'; 109 match = ';';
107 }, 110 },
108 { name = 'storage.modifier.dart'; 111 { name = 'storage.modifier.dart';
109 » » » » » match = '\b(static|final|native|abstract |const|class|interface|get|set|operator|external)\b'; 112 » » » » » match = '\b(static|final|const)\b';
110 }, 113 },
111 { name = 'storage.type.primitive.dart'; 114 { name = 'storage.type.primitive.dart';
112 » » » » » match = '\b(?:void|bool|num|int|double|D ynamic|var)\b'; 115 » » » » » match = '\b(?:void|bool|num|int|double|D ynamic|var|String)\b';
113 }, 116 },
114 ); 117 );
115 }; 118 };
116 string-interp = { 119 string-interp = {
117 patterns = ( 120 patterns = (
118 { match = '\$((\w+)|\{(\w+)\})'; 121 { match = '\$((\w+)|\{(\w+)\})';
119 captures = { 122 captures = {
120 2 = { name = 'variable.parameter .dart'; }; 123 2 = { name = 'variable.parameter .dart'; };
121 3 = { name = 'variable.parameter .dart'; }; 124 3 = { name = 'variable.parameter .dart'; };
122 }; 125 };
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 patterns = ( 175 patterns = (
173 { name = 'invalid.string.n ewline'; 176 { name = 'invalid.string.n ewline';
174 match = '\n'; 177 match = '\n';
175 }, 178 },
176 ); 179 );
177 }, 180 },
178 ); 181 );
179 }; 182 };
180 }; 183 };
181 } 184 }
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