1
1
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:
Timothy Clem 2017-07-07 14:23:38 -07:00
parent 39b7c05e50
commit fbe6e451f4

View File

@ -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)