diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-12 14:37:06 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-12 16:16:06 -0400 |
| commit | 59f5f715f8720597134cafcbb2a26da43b21d370 (patch) | |
| tree | 8c422115e9afce1f3f95453eac4bed1d65e8873c /src/server/ast.odin | |
| parent | 82c8a0b2cb1373afeb9f87339cc3aaccdffb31ff (diff) | |
Update all short signatures to be consistent across types
Diffstat (limited to 'src/server/ast.odin')
| -rw-r--r-- | src/server/ast.odin | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/server/ast.odin b/src/server/ast.odin index 81ec5c7..31d13b8 100644 --- a/src/server/ast.odin +++ b/src/server/ast.odin @@ -10,7 +10,6 @@ import path "core:path/slashpath" import "core:strings" keyword_map: map[string]bool = { - "typeid" = true, "int" = true, "uint" = true, "string" = true, @@ -68,6 +67,43 @@ keyword_map: map[string]bool = { "quaternion128" = true, "quaternion256" = true, "uintptr" = true, + // taken from https://github.com/odin-lang/Odin/wiki/Keywords-and-Operators + "asm" = true, + "auto_cast" = true, + "bit_field" = true, + "bit_set" = true, + "break" = true, + "case" = true, + "cast" = true, + "context" = true, + "continue" = true, + "defer" = true, + "distinct" = true, + "do" = true, + "dynamic" = true, + "else" = true, + "enum" = true, + "fallthrough" = true, + "for" = true, + "foreign" = true, + "if" = true, + "import" = true, + "in" = true, + "map" = true, + "not_in" = true, + "or_else" = true, + "or_return" = true, + "package" = true, + "proc" = true, + "return" = true, + "struct" = true, + "switch" = true, + "transmute" = true, + "typeid" = true, + "union" = true, + "using" = true, + "when" = true, + "where" = true, } GlobalExpr :: struct { |