aboutsummaryrefslogtreecommitdiff
path: root/src/server/ast.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-13 15:26:47 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-13 15:26:47 -0400
commit65912c3e7588c6c94ab28f1781d24ef4d4feb41d (patch)
treecfa0feb59582e268c8e555bc3f19209508490036 /src/server/ast.odin
parent3a3a5c1d97fce98d2f8b923953b03c139b24224f (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.odin38
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 {