File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed
data/fixtures/scopes/java/statement
packages/common/src/scopeSupportFacets Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 1+ public record Foo(int a) {}
2+ ---
3+
4+ [Content] =
5+ [Removal] =
6+ [Domain] = 0:0-0:27
7+ >---------------------------<
8+ 0| public record Foo(int a) {}
9+
10+ [Insertion delimiter] = "\n"
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = {
114114 "statement.continue" : supported ,
115115 "statement.resource" : supported ,
116116 "statement.static" : supported ,
117+ "statement.misc" : supported ,
117118 "statement.iteration.document" : supported ,
118119 "statement.iteration.class" : supported ,
119120 "statement.iteration.interface" : supported ,
@@ -301,7 +302,6 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = {
301302 "value.iteration.enum" : notApplicable ,
302303
303304 // Miscellaneous
304- "statement.misc" : notApplicable ,
305305 pairDelimiter : notApplicable ,
306306 regularExpression : notApplicable ,
307307 environment : notApplicable ,
Original file line number Diff line number Diff line change 3232 (field_declaration)
3333 (constant_declaration)
3434 (static_initializer)
35+ (record_declaration)
3536
3637 ;; Disabled on purpose. We don't consider these to be statements.
3738 ;; exceptions
138139
139140;; !! "string"
140141;; ! ^^^^^^^^
141- (
142- (string_literal) @string @textFragment
143- (#character-range! @textFragment 1 -1)
144- )
145-
146142;; !! """string"""
147143;; ! ^^^^^^^^^^^^
148- (
149- (text_block) @string @textFragment
150- (#character-range! @textFragment 3 -3)
151- )
144+ (string_literal) @string
145+
146+ [
147+ (string_fragment)
148+ (multiline_string_fragment)
149+ ] @textFragment
152150
153151;; !! // comment
154152;; ! ^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments