File tree Expand file tree Collapse file tree 4 files changed +39
-1
lines changed Expand file tree Collapse file tree 4 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ repository:
155
155
- include : ' #for-loop'
156
156
- name : keyword.control.trycatch.ts
157
157
match : ' {{startOfIdentifier}}(catch|finally|throw|try){{endOfIdentifier}}'
158
+ - match : ' {{startOfIdentifier}}(break|continue|goto)\s+({{identifier}}){{endOfIdentifier}}'
159
+ captures :
160
+ ' 1 ' : { name: keyword.control.loop.ts }
161
+ ' 2 ' : { name: entity.name.label.ts }
158
162
- name : keyword.control.loop.ts
159
163
match : ' {{startOfIdentifier}}(break|continue|do|goto|while){{endOfIdentifier}}'
160
164
- name : keyword.control.flow.ts
Original file line number Diff line number Diff line change 153
153
<key >match </key >
154
154
<string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(catch|finally|throw|try)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
155
155
</dict >
156
+ <dict >
157
+ <key >match </key >
158
+ <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(break|continue|goto)\s+([_$[:alpha:]][_$[:alnum:]]*)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
159
+ <key >captures </key >
160
+ <dict >
161
+ <key >1 </key >
162
+ <dict >
163
+ <key >name </key >
164
+ <string >keyword.control.loop.ts </string >
165
+ </dict >
166
+ <key >2 </key >
167
+ <dict >
168
+ <key >name </key >
169
+ <string >entity.name.label.ts </string >
170
+ </dict >
171
+ </dict >
172
+ </dict >
156
173
<dict >
157
174
<key >name </key >
158
175
<string >keyword.control.loop.ts </string >
Original file line number Diff line number Diff line change 153
153
<key >match </key >
154
154
<string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(catch|finally|throw|try)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
155
155
</dict >
156
+ <dict >
157
+ <key >match </key >
158
+ <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(break|continue|goto)\s+([_$[:alpha:]][_$[:alnum:]]*)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
159
+ <key >captures </key >
160
+ <dict >
161
+ <key >1 </key >
162
+ <dict >
163
+ <key >name </key >
164
+ <string >keyword.control.loop.tsx </string >
165
+ </dict >
166
+ <key >2 </key >
167
+ <dict >
168
+ <key >name </key >
169
+ <string >entity.name.label.tsx </string >
170
+ </dict >
171
+ </dict >
172
+ </dict >
156
173
<dict >
157
174
<key >name </key >
158
175
<string >keyword.control.loop.tsx </string >
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ Grammar: TypeScript.tmLanguage
96
96
^
97
97
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
98
98
^^^^
99
- source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.other.readwrite .ts
99
+ source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts entity.name.label .ts
100
100
^
101
101
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
102
102
> }
You can’t perform that action at this time.
0 commit comments