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

Commit 26cd38f

Browse files
committed
Don’t double-nest Statements.
1 parent 16f6c72 commit 26cd38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Language/Python/Assignment.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ functionParam = (makeParameter <$> location <*> identifier)
280280

281281
functionDefinition :: Assignment Term
282282
functionDefinition =
283-
makeFunctionDeclaration <$> symbol FunctionDefinition <*> children ((,,,) <$> term expression <* symbol Parameters <*> children (manyTerm functionParam) <*> optional (symbol Type *> children (term expression)) <*> expressions')
283+
makeFunctionDeclaration <$> symbol FunctionDefinition <*> children ((,,,) <$> term expression <* symbol Parameters <*> children (manyTerm functionParam) <*> optional (symbol Type *> children (term expression)) <*> term block')
284284
<|> makeFunctionDeclaration <$> (symbol Lambda' <|> symbol Lambda) <*> children ((,,,) <$ token AnonLambda <*> emptyTerm <*> (symbol LambdaParameters *> children (manyTerm expression) <|> pure []) <*> optional (symbol Type *> children (term expression)) <*> expressions')
285285
where
286286
expressions' = makeTerm <$> location <*> manyTerm expression

0 commit comments

Comments
 (0)