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

Assign symbol literals.

This commit is contained in:
Rob Rix 2017-05-01 17:22:35 -04:00
parent d025774908
commit 0b96eb7c0f

View File

@ -111,6 +111,7 @@ literal :: Assignment (Node Grammar) (Term Syntax Location)
literal = leaf Language.Ruby.Syntax.True (const Literal.true) literal = leaf Language.Ruby.Syntax.True (const Literal.true)
<|> leaf Language.Ruby.Syntax.False (const Literal.false) <|> leaf Language.Ruby.Syntax.False (const Literal.false)
<|> leaf Language.Ruby.Syntax.Integer Literal.Integer <|> 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 ... <|> symbol Range *> term <*> children (Literal.Range <$> statement <*> statement) -- FIXME: represent the difference between .. and ...
-- | Assignment of the current nodes annotation. -- | Assignment of the current nodes annotation.