diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-12 11:29:12 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-12 11:29:12 -0400 |
| commit | 613c9e6d59dfcdc72dfb3fcc72e63f1ed277cbfc (patch) | |
| tree | 754f21d9accf6ad7b9eecfd94870fd45ac062a54 /src/server/documentation.odin | |
| parent | 9e6c39fcd74edce577015d4c2a09cbad89adf958 (diff) | |
Use empty struct as map values when wanting a hashset
Diffstat (limited to 'src/server/documentation.odin')
| -rw-r--r-- | src/server/documentation.odin | 192 |
1 files changed, 96 insertions, 96 deletions
diff --git a/src/server/documentation.odin b/src/server/documentation.odin index cdc2112..6ec0e07 100644 --- a/src/server/documentation.odin +++ b/src/server/documentation.odin @@ -7,103 +7,103 @@ import "core:odin/ast" import path "core:path/slashpath" import "core:strings" -keywords_docs: map[string]bool = { - "typeid" = true, - "string" = true, - "cstring" = true, - "int" = true, - "uint" = true, - "u8" = true, - "i8" = true, - "u16" = true, - "i16" = true, - "u32" = true, - "i32" = true, - "u64" = true, - "i64" = true, - "u128" = true, - "i128" = true, - "f16" = true, - "f32" = true, - "f64" = true, - "bool" = true, - "rawptr" = true, - "any" = true, - "b8" = true, - "b16" = true, - "b32" = true, - "b64" = true, - "true" = true, - "false" = true, - "nil" = true, - "byte" = true, - "rune" = true, - "f16be" = true, - "f16le" = true, - "f32be" = true, - "f32le" = true, - "f64be" = true, - "f64le" = true, - "i16be" = true, - "i16le" = true, - "i32be" = true, - "i32le" = true, - "i64be" = true, - "i64le" = true, - "u16be" = true, - "u16le" = true, - "u32be" = true, - "u32le" = true, - "u64be" = true, - "u64le" = true, - "i128be" = true, - "i128le" = true, - "u128be" = true, - "u128le" = true, - "complex32" = true, - "complex64" = true, - "complex128" = true, - "quaternion64" = true, - "quaternion128" = true, - "quaternion256" = true, - "uintptr" = true, +keywords_docs: map[string]struct{} = { + "typeid" = {}, + "string" = {}, + "cstring" = {}, + "int" = {}, + "uint" = {}, + "u8" = {}, + "i8" = {}, + "u16" = {}, + "i16" = {}, + "u32" = {}, + "i32" = {}, + "u64" = {}, + "i64" = {}, + "u128" = {}, + "i128" = {}, + "f16" = {}, + "f32" = {}, + "f64" = {}, + "bool" = {}, + "rawptr" = {}, + "any" = {}, + "b8" = {}, + "b16" = {}, + "b32" = {}, + "b64" = {}, + "true" = {}, + "false" = {}, + "nil" = {}, + "byte" = {}, + "rune" = {}, + "f16be" = {}, + "f16le" = {}, + "f32be" = {}, + "f32le" = {}, + "f64be" = {}, + "f64le" = {}, + "i16be" = {}, + "i16le" = {}, + "i32be" = {}, + "i32le" = {}, + "i64be" = {}, + "i64le" = {}, + "u16be" = {}, + "u16le" = {}, + "u32be" = {}, + "u32le" = {}, + "u64be" = {}, + "u64le" = {}, + "i128be" = {}, + "i128le" = {}, + "u128be" = {}, + "u128le" = {}, + "complex32" = {}, + "complex64" = {}, + "complex128" = {}, + "quaternion64" = {}, + "quaternion128" = {}, + "quaternion256" = {}, + "uintptr" = {}, // 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, + "asm" = {}, + "auto_cast" = {}, + "bit_field" = {}, + "bit_set" = {}, + "break" = {}, + "case" = {}, + "cast" = {}, + "context" = {}, + "continue" = {}, + "defer" = {}, + "distinct" = {}, + "do" = {}, + "dynamic" = {}, + "else" = {}, + "enum" = {}, + "fallthrough" = {}, + "for" = {}, + "foreign" = {}, + "if" = {}, + "import" = {}, + "in" = {}, + "map" = {}, + "not_in" = {}, + "or_else" = {}, + "or_return" = {}, + "package" = {}, + "proc" = {}, + "return" = {}, + "struct" = {}, + "switch" = {}, + "transmute" = {}, + "typeid" = {}, + "union" = {}, + "using" = {}, + "when" = {}, + "where" = {}, } // Adds signature and docs information to the provided symbol |