Updated the list of operators and keywords

This commit is contained in:
VegOwOtenks 2025-01-20 21:36:47 +01:00
parent 52e04d28cf
commit 4592a89ebf

View file

@ -55,8 +55,37 @@ languageDef = LanguageDef {
, identLetter = alphaNum <|> char '_'
, opStart = oneOf "+-*/%"
, opLetter = oneOf "+-*/%"
, reservedNames = [ "struct", "u32", "i32", "f32", "if", "then", "else" ]
, reservedOpNames = [ "+", "-", "*", "/", "%" ]
, reservedNames = [ "struct"
, "u32"
, "i32"
, "f32"
, "if"
, "unless"
, "then"
, "else"
, "while"
, "until"
]
, reservedOpNames = [ "+"
, "-"
, "*"
, "/"
, "%"
, "<<"
, ">>"
, ">="
, "<="
, "<"
, ">"
, "=="
, "!="
, "&"
, "^"
, "|"
, "&&"
, "||"
, "="
]
, caseSensitive = True
}