From 8609e7dceda136a61dd38332495fa414acdf6888 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 24 Aug 2017 16:22:21 -0700 Subject: [PATCH] Assign parenthesizedExpression --- src/Language/Python/Syntax.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Language/Python/Syntax.hs b/src/Language/Python/Syntax.hs index 8be9bd1cb..6a3ccfc4e 100644 --- a/src/Language/Python/Syntax.hs +++ b/src/Language/Python/Syntax.hs @@ -203,6 +203,9 @@ dictionarySplat = makeTerm <$> symbol DictionarySplat <*> (Syntax.Identifier <$> keywordArgument :: Assignment keywordArgument = makeTerm <$> symbol KeywordArgument <*> children (Statement.Assignment <$> expression <*> expression) +parenthesizedExpression :: Assignment +parenthesizedExpression = symbol ParenthesizedExpression *> children expressions + parameter :: Assignment parameter = makeTerm <$> symbol DefaultParameter <*> children (Statement.Assignment <$> expression <*> expression) <|> makeTerm <$> symbol ListSplatParameter <*> (Syntax.Identifier <$> source)