mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +03:00
Keywords as identifiers
This commit is contained in:
parent
39b7c05e50
commit
fbe6e451f4
@ -170,8 +170,7 @@ keyword =
|
|||||||
mk KeywordFILE
|
mk KeywordFILE
|
||||||
<|> mk KeywordLINE
|
<|> mk KeywordLINE
|
||||||
<|> mk KeywordENCODING
|
<|> mk KeywordENCODING
|
||||||
-- TODO: Give keywords their own Expression?
|
where mk s = makeTerm <$> symbol s <*> (Syntax.Identifier <$> source)
|
||||||
where mk s = makeTerm <$> symbol s <*> (Literal.TextElement <$> source)
|
|
||||||
|
|
||||||
beginBlock :: Assignment
|
beginBlock :: Assignment
|
||||||
beginBlock = makeTerm <$> symbol BeginBlock <*> children (Statement.ScopeEntry <$> many statement)
|
beginBlock = makeTerm <$> symbol BeginBlock <*> children (Statement.ScopeEntry <$> many statement)
|
||||||
|
Loading…
Reference in New Issue
Block a user