mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
Assign symbol literals.
This commit is contained in:
parent
d025774908
commit
0b96eb7c0f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user