From 0b96eb7c0f2ddb560322c83b0751fb08f2f9b10c Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Mon, 1 May 2017 17:22:35 -0400 Subject: [PATCH] Assign symbol literals. --- src/Language/Ruby/Syntax.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Language/Ruby/Syntax.hs b/src/Language/Ruby/Syntax.hs index 583e9a3a2..023b42b2a 100644 --- a/src/Language/Ruby/Syntax.hs +++ b/src/Language/Ruby/Syntax.hs @@ -111,6 +111,7 @@ literal :: Assignment (Node Grammar) (Term Syntax Location) literal = leaf Language.Ruby.Syntax.True (const Literal.true) <|> leaf Language.Ruby.Syntax.False (const Literal.false) <|> leaf Language.Ruby.Syntax.Integer Literal.Integer + <|> symbol Symbol *> term <*> (Literal.Symbol <$> source) <|> symbol Range *> term <*> children (Literal.Range <$> statement <*> statement) -- FIXME: represent the difference between .. and ... -- | Assignment of the current node’s annotation.