File tree Expand file tree Collapse file tree 6 files changed +32
-4
lines changed
packages/common/src/scopeSupportFacets Expand file tree Collapse file tree 6 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ export const htmlScopeSupport: LanguageScopeSupportFacetMap = {
124124 "name.foreach" : notApplicable ,
125125 "name.function" : notApplicable ,
126126 "name.iteration.block" : notApplicable ,
127+ "name.iteration.class" : notApplicable ,
127128 "name.iteration.document" : notApplicable ,
128129 "name.method" : notApplicable ,
129130 "name.resource.iteration" : notApplicable ,
@@ -185,6 +186,9 @@ export const htmlScopeSupport: LanguageScopeSupportFacetMap = {
185186 "value.variable.pattern" : notApplicable ,
186187 "value.variable" : notApplicable ,
187188 "value.yield" : notApplicable ,
189+ "value.iteration.block" : notApplicable ,
190+ "value.iteration.class" : notApplicable ,
191+ "value.iteration.document" : notApplicable ,
188192 anonymousFunction : notApplicable ,
189193 class : notApplicable ,
190194 className : notApplicable ,
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = {
139139 "name.foreach" : notApplicable ,
140140 "name.function" : notApplicable ,
141141 "name.iteration.block" : notApplicable ,
142+ "name.iteration.class" : notApplicable ,
142143 "name.iteration.document" : notApplicable ,
143144 "name.method" : notApplicable ,
144145 "name.resource" : notApplicable ,
@@ -208,6 +209,9 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = {
208209 "value.variable" : notApplicable ,
209210 "value.variable.pattern" : notApplicable ,
210211 "value.yield" : notApplicable ,
212+ "value.iteration.block" : notApplicable ,
213+ "value.iteration.class" : notApplicable ,
214+ "value.iteration.document" : notApplicable ,
211215 selector : notApplicable ,
212216 unit : notApplicable ,
213217} ;
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ export const scmScopeSupport: LanguageScopeSupportFacetMap = {
139139 "name.foreach" : notApplicable ,
140140 "name.function" : notApplicable ,
141141 "name.iteration.block" : notApplicable ,
142+ "name.iteration.class" : notApplicable ,
142143 "name.iteration.document" : notApplicable ,
143144 "name.method" : notApplicable ,
144145 "name.resource" : notApplicable ,
@@ -209,6 +210,9 @@ export const scmScopeSupport: LanguageScopeSupportFacetMap = {
209210 "value.variable" : notApplicable ,
210211 "value.variable.pattern" : notApplicable ,
211212 "value.yield" : notApplicable ,
213+ "value.iteration.block" : notApplicable ,
214+ "value.iteration.class" : notApplicable ,
215+ "value.iteration.document" : notApplicable ,
212216 selector : notApplicable ,
213217 unit : notApplicable ,
214218} ;
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ export const xmlScopeSupport: LanguageScopeSupportFacetMap = {
138138 "name.foreach" : notApplicable ,
139139 "name.function" : notApplicable ,
140140 "name.iteration.block" : notApplicable ,
141+ "name.iteration.class" : notApplicable ,
141142 "name.iteration.document" : notApplicable ,
142143 "name.method" : notApplicable ,
143144 "name.resource" : notApplicable ,
@@ -205,6 +206,9 @@ export const xmlScopeSupport: LanguageScopeSupportFacetMap = {
205206 "value.variable" : notApplicable ,
206207 "value.variable.pattern" : notApplicable ,
207208 "value.yield" : notApplicable ,
209+ "value.iteration.block" : notApplicable ,
210+ "value.iteration.class" : notApplicable ,
211+ "value.iteration.document" : notApplicable ,
208212 selector : notApplicable ,
209213 unit : notApplicable ,
210214} ;
Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ export const yamlScopeSupport: LanguageScopeSupportFacetMap = {
145145 "name.foreach" : notApplicable ,
146146 "name.function" : notApplicable ,
147147 "name.iteration.block" : notApplicable ,
148+ "name.iteration.class" : notApplicable ,
148149 "name.iteration.document" : notApplicable ,
149150 "name.method" : notApplicable ,
150151 "name.resource" : notApplicable ,
@@ -212,6 +213,9 @@ export const yamlScopeSupport: LanguageScopeSupportFacetMap = {
212213 "value.variable" : notApplicable ,
213214 "value.variable.pattern" : notApplicable ,
214215 "value.yield" : notApplicable ,
216+ "value.iteration.block" : notApplicable ,
217+ "value.iteration.class" : notApplicable ,
218+ "value.iteration.document" : notApplicable ,
215219 selector : notApplicable ,
216220 unit : notApplicable ,
217221} ;
Original file line number Diff line number Diff line change 7777
7878(
7979 (_
80- (_
80+ (block
8181 "{" @interior.start.endOf
8282 "}" @interior.end.startOf
83- ) @_dummy
83+ )
8484 ) @_.domain
85- (#type? @_dummy block switch_body)
86- (#not-type? @_.domain try_statement)
85+ (#not-type? @_.domain try_statement if_statement)
8786)
8887
8988;; !! if () {}
299298 )
300299] @_.domain
301300
301+ ;; !! switch(value) { }
302+ ;; ! ^
303+ (switch_statement
304+ (switch_body
305+ "{" @interior.start.endOf
306+ "}" @interior.end.startOf
307+ )
308+ ) @_.domain
309+
302310(switch_statement
303311 (tuple_expression) @private.switchStatementSubject
304312) @_.domain
You can’t perform that action at this time.
0 commit comments