mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 00:28:49 +00:00
Allow not_in as keyword over notin, but still allow notin to work
This commit is contained in:
@@ -124,7 +124,7 @@ Token_Kind :: enum u32 {
|
||||
For,
|
||||
Switch,
|
||||
In,
|
||||
Notin,
|
||||
Not_In,
|
||||
Do,
|
||||
Case,
|
||||
Break,
|
||||
@@ -259,7 +259,7 @@ tokens := [Token_Kind.COUNT]string {
|
||||
"for",
|
||||
"switch",
|
||||
"in",
|
||||
"notin",
|
||||
"not_in",
|
||||
"do",
|
||||
"case",
|
||||
"break",
|
||||
@@ -316,7 +316,7 @@ is_operator :: proc(kind: Token_Kind) -> bool {
|
||||
#partial switch kind {
|
||||
case .B_Operator_Begin .. .B_Operator_End:
|
||||
return true;
|
||||
case .In, .Notin:
|
||||
case .In, .Not_In:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user