From 5881bae111f54a65118fa9d029984e6fd7287552 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Mon, 1 May 2017 16:50:41 -0400 Subject: [PATCH] =?UTF-8?q?Note=20that=20we=20don=E2=80=99t=20discriminate?= =?UTF-8?q?=20between=20..=20and=20...=20yet.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Language/Ruby/Syntax.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Language/Ruby/Syntax.hs b/src/Language/Ruby/Syntax.hs index 761a6e504..d2bd8b6d5 100644 --- a/src/Language/Ruby/Syntax.hs +++ b/src/Language/Ruby/Syntax.hs @@ -121,7 +121,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 Range *> term <*> children (Literal.Range <$> statement <*> statement) + <|> symbol Range *> term <*> children (Literal.Range <$> statement <*> statement) -- FIXME: represent the difference between .. and ... -- | Assignment of the current node’s annotation. term :: InUnion Syntax' f => Assignment (Node grammar) (f (Term Syntax Location) -> Term Syntax Location)