From 96910c7d55a811141fc18dcea4d21610f055260c Mon Sep 17 00:00:00 2001 From: Timothy Clem Date: Fri, 7 Jul 2017 15:16:51 -0700 Subject: [PATCH] Any statement as parameter --- src/Language/Ruby/Syntax.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Language/Ruby/Syntax.hs b/src/Language/Ruby/Syntax.hs index 1263e5831..798195899 100644 --- a/src/Language/Ruby/Syntax.hs +++ b/src/Language/Ruby/Syntax.hs @@ -192,13 +192,13 @@ scopeResolution = makeTerm <$> symbol ScopeResolution <*> children (Expression.S parameter :: Assignment parameter = - identifier - <|> mk SplatParameter + mk SplatParameter <|> mk HashSplatParameter <|> mk BlockParameter <|> mk KeywordParameter <|> mk OptionalParameter <|> makeTerm <$> symbol DestructuredParameter <*> children (many parameter) + <|> statement where mk s = makeTerm <$> symbol s <*> (Syntax.Identifier <$> source) method :: Assignment