From 502f1c52b83f0cf7f94a4a08f812a3267f3f6bef Mon Sep 17 00:00:00 2001 From: Viktor Date: Wed, 4 Jun 2025 14:58:43 +0600 Subject: [PATCH] impr: add words to Odin, remove non-existing complex_* (@dayllenger) (#6607) ### Description Added a few missing keywords, some common attributes and procedures. Removed complex_double/complex_float (not sure why they were there). ### Checks - [x] Check if any open issues are related to this PR; if so, be sure to tag them below. - [x] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info) - [x] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title. --- frontend/static/languages/code_odin.json | 37 ++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/frontend/static/languages/code_odin.json b/frontend/static/languages/code_odin.json index aafab6f83..dc45650fa 100644 --- a/frontend/static/languages/code_odin.json +++ b/frontend/static/languages/code_odin.json @@ -2,7 +2,12 @@ "name": "code_odin", "noLazyMode": true, "words": [ + "abs", + "align_of", + "allocator", "any", + "append", + "assert", "auto_cast", "b16", "b32", @@ -15,14 +20,15 @@ "byte", "case", "cast", + "clamp", "complex128", "complex32", "complex64", - "complex_double", - "complex_float", + "context", "continue", "cstring", "defer", + "delete_key", "distinct", "do", "double", @@ -41,7 +47,9 @@ "false", "float", "for", + "force_inline", "foreign", + "free_all", "i128", "i128be", "i128le", @@ -61,23 +69,48 @@ "int", "map", "matrix", + "max", + "min", + "new_clone", "nil", + "no_nil", "not_in", + "offset_of", + "or_break", + "or_continue", "or_else", "or_return", "package", + "packed", + "panic", + "partial", + "println", + "private", "proc", "quaternion128", "quaternion256", "quaternion64", + "raw_data", + "raw_union", "rawptr", + "reserve", + "resize", "return", "rune", + "shared_nil", + "shrink", + "simd", + "size_of", + "soa_unzip", + "soa_zip", "string", "struct", "switch", + "thread_local", + "tprintf", "transmute", "true", + "type_of", "typeid", "u128", "u128be",