mirror of
https://github.com/github/semantic.git
synced 2024-12-30 18:36:27 +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