Skip to content

Commit 2be89a6

Browse files
committed
unified: Prevent field bleed-through from _if_let_binding
Same procedure as before -- we change the anonymous node to a named node, and the problem magically goes away.
1 parent 7627594 commit 2be89a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unified/extractor/tree-sitter-swift/grammar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,8 +1041,8 @@ module.exports = grammar({
10411041
)
10421042
),
10431043
if_condition: ($) =>
1044-
choice($._if_let_binding, $.expression, $.availability_condition),
1045-
_if_let_binding: ($) =>
1044+
choice($.if_let_binding, $.expression, $.availability_condition),
1045+
if_let_binding: ($) =>
10461046
seq(
10471047
$._direct_or_indirect_binding,
10481048
optional(seq($._equal_sign, $.expression)),

0 commit comments

Comments
 (0)