diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-13 15:26:47 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-13 15:26:47 -0400 |
| commit | 65912c3e7588c6c94ab28f1781d24ef4d4feb41d (patch) | |
| tree | cfa0feb59582e268c8e555bc3f19209508490036 /src/server/ast.odin | |
| parent | 3a3a5c1d97fce98d2f8b923953b03c139b24224f (diff) | |
Use a separate list of keywords for the documentation to not break analysis elsewhere
Diffstat (limited to 'src/server/ast.odin')
| -rw-r--r-- | src/server/ast.odin | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/src/server/ast.odin b/src/server/ast.odin index 791d1b5..8037d6f 100644 --- a/src/server/ast.odin +++ b/src/server/ast.odin @@ -10,6 +10,7 @@ import path "core:path/slashpath" import "core:strings" keyword_map: map[string]bool = { + "typeid" = true, "int" = true, "uint" = true, "string" = true, @@ -67,43 +68,6 @@ 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 { |