1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

Note that we don’t discriminate between .. and ... yet.

This commit is contained in:
Rob Rix 2017-05-01 16:50:41 -04:00
parent 87f779af46
commit 5881bae111

View File

@ -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 nodes annotation.
term :: InUnion Syntax' f => Assignment (Node grammar) (f (Term Syntax Location) -> Term Syntax Location)