diff --git a/src/Language/Ruby/Syntax.hs b/src/Language/Ruby/Syntax.hs index 4ca9cc310..e4d23b24e 100644 --- a/src/Language/Ruby/Syntax.hs +++ b/src/Language/Ruby/Syntax.hs @@ -382,7 +382,7 @@ conditional :: Assignment conditional = makeTerm <$> symbol Conditional <*> children (Statement.If <$> statement <*> statement <*> statement) emptyStatement :: Assignment -emptyStatement = makeTerm <$> symbol EmptyStatement <*> pure Syntax.Empty +emptyStatement = makeTerm <$> symbol EmptyStatement <*> (Syntax.Empty <$ source <|> pure Syntax.Empty) -- Helper functions