Skip to content

Commit a48730d

Browse files
Restore java
1 parent 834c7aa commit a48730d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

queries/java.scm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@
194194
(if_statement
195195
"if" @branch.start @branch.removal.start
196196
condition: (_) @condition
197-
consequence: (_) @branch.end @branch.removal.end
198-
alternative: (_)? @branch.removal.end.startOf
197+
consequence: (block) @branch.end @branch.removal.end
198+
alternative: (if_statement)? @branch.removal.end.startOf
199199
) @condition.domain
200200
(#not-parent-type? @condition.domain "if_statement")
201201
(#child-range! @condition 0 -1 true true)
@@ -207,7 +207,7 @@
207207
"else" @branch.start @condition.domain.start
208208
alternative: (if_statement
209209
condition: (_) @condition
210-
consequence: (_) @branch.end @condition.domain.end
210+
consequence: (block) @branch.end @condition.domain.end
211211
(#child-range! @condition 0 -1 true true)
212212
)
213213
)
@@ -216,7 +216,7 @@
216216
;;! ^^^^^^^
217217
(if_statement
218218
"else" @branch.start
219-
alternative: (_) @branch.end
219+
alternative: (block) @branch.end
220220
)
221221

222222
(

0 commit comments

Comments
 (0)