fix IsReserved

IsReserved should be true for e.g. "λ" but not "fun", since only the
first can show up in the lexer output
This commit is contained in:
rhiannon morris 2023-11-05 15:43:17 +01:00
parent 6c8ebfb804
commit d9cdf1306d
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ allReservedStrings = foldMap resString2 reserved
||| the token stream
public export
IsReserved : String -> Type
IsReserved str = So (str `elem` allReservedStrings)
IsReserved str = So (str `elem` reservedStrings)
private
name : Tokenizer ExtToken