Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 3ea0bd9

Browse files
committed
Add a rule to always insert nodes for blocks.
1 parent 669ffa6 commit 3ea0bd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Language/Python/Assignment.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ expressions = makeTerm'' <$> location <*> manyTerm expression
202202
block :: Assignment Term
203203
block = symbol Block *> children (makeTerm'' <$> location <*> manyTerm expression)
204204

205+
block' :: Assignment Term
206+
block' = symbol Block *> children (makeTerm <$> location <*> manyTerm expression)
207+
205208
expressionStatement :: Assignment Term
206209
expressionStatement = makeTerm'' <$> symbol ExpressionStatement <*> children (someTerm expression)
207210

0 commit comments

Comments
 (0)