From ec17dfb47ad14828cf96e8bdf4f42e342b5a0612 Mon Sep 17 00:00:00 2001 From: Timothy Clem Date: Mon, 13 Jan 2020 15:07:37 -0800 Subject: [PATCH] Python assignment fixes --- src/Language/Python/Assignment.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Language/Python/Assignment.hs b/src/Language/Python/Assignment.hs index 04f681574..f7b620bee 100644 --- a/src/Language/Python/Assignment.hs +++ b/src/Language/Python/Assignment.hs @@ -128,10 +128,10 @@ expressionList :: Assignment (Term Loc) expressionList = makeTerm'' <$> symbol ExpressionList <*> children (someTerm expression) listSplat :: Assignment (Term Loc) -listSplat = makeTerm <$> symbol ListSplat <*> (Syntax.Identifier . name <$> source) +listSplat = makeTerm <$> symbol ListSplat <*> children (someTerm expression) dictionarySplat :: Assignment (Term Loc) -dictionarySplat = makeTerm <$> symbol DictionarySplat <*> (Syntax.Identifier . name <$> source) +dictionarySplat = makeTerm <$> symbol DictionarySplat <*> children (someTerm expression) keywordArgument :: Assignment (Term Loc) keywordArgument = makeTerm <$> symbol KeywordArgument <*> children (Statement.Assignment [] <$> term expression <*> term expression)