diff --git a/src/Language/Python/Syntax.hs b/src/Language/Python/Syntax.hs index 1fb3553ca..f46e68545 100644 --- a/src/Language/Python/Syntax.hs +++ b/src/Language/Python/Syntax.hs @@ -194,6 +194,8 @@ argument :: Assignment argument = makeTerm <$> symbol ListSplatArgument <*> (Syntax.Identifier <$> source) <|> makeTerm <$> symbol DictionarySplatArgument <*> (Syntax.Identifier <$> source) <|> makeTerm <$> symbol KeywordArgument <*> children (Statement.Assignment <$> expression <*> expression) +listSplat :: Assignment +listSplat = makeTerm <$> symbol ListSplat <*> (Syntax.Identifier <$> source) parameter :: Assignment parameter = makeTerm <$> symbol DefaultParameter <*> children (Statement.Assignment <$> expression <*> expression)