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 = {
114
114
"statement.continue" : supported ,
115
115
"statement.resource" : supported ,
116
116
"statement.static" : supported ,
117
+ "statement.misc" : supported ,
117
118
"statement.iteration.document" : supported ,
118
119
"statement.iteration.class" : supported ,
119
120
"statement.iteration.interface" : supported ,
@@ -301,7 +302,6 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = {
301
302
"value.iteration.enum" : notApplicable ,
302
303
303
304
// Miscellaneous
304
- "statement.misc" : notApplicable ,
305
305
pairDelimiter : notApplicable ,
306
306
regularExpression : notApplicable ,
307
307
environment : notApplicable ,
Original file line number Diff line number Diff line change 32
32
(field_declaration)
33
33
(constant_declaration)
34
34
(static_initializer)
35
+ (record_declaration)
35
36
36
37
;; Disabled on purpose. We don't consider these to be statements.
37
38
;; exceptions
138
139
139
140
;; !! "string"
140
141
;; ! ^^^^^^^^
141
- (
142
- (string_literal) @string @textFragment
143
- (#character-range! @textFragment 1 -1)
144
- )
145
-
146
142
;; !! """string"""
147
143
;; ! ^^^^^^^^^^^^
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
152
150
153
151
;; !! // comment
154
152
;; ! ^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments