From 3b2cde851809ca84b29b864193846ee664db60e4 Mon Sep 17 00:00:00 2001 From: mqdr Date: Tue, 8 Oct 2024 21:16:05 +0200 Subject: [PATCH] feat(lang): add code odin (@MarcinKuder) (#5921) ### Description Added support for Odin Language ### Checks - [ ] Adding quotes? - [ ] Make sure to include translations for the quotes in the description (or another comment) so we can verify their content. - [x] Adding a language or a theme? - [x] If is a language, did you edit `_list.json`, `_groups.json` and add `languages.json`? - [ ] If is a theme, did you add the theme.css? - Also please add a screenshot of the theme, it would be extra awesome if you do so! - [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. Closes # --- frontend/static/languages/_groups.json | 3 +- frontend/static/languages/_list.json | 1 + frontend/static/languages/code_odin.json | 102 +++++++++++++++++++++++ 3 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 frontend/static/languages/code_odin.json diff --git a/frontend/static/languages/_groups.json b/frontend/static/languages/_groups.json index 9510e94da..805d77d6f 100644 --- a/frontend/static/languages/_groups.json +++ b/frontend/static/languages/_groups.json @@ -608,7 +608,8 @@ "code_ook", "code_typescript", "code_cobol", - "code_common_lisp" + "code_common_lisp", + "code_odin" ] } ] diff --git a/frontend/static/languages/_list.json b/frontend/static/languages/_list.json index 41907a810..989a9968f 100644 --- a/frontend/static/languages/_list.json +++ b/frontend/static/languages/_list.json @@ -350,6 +350,7 @@ ,"code_v" ,"code_ook" ,"code_typescript" + ,"code_odin" ,"xhosa" ,"code_cobol" ,"code_common_lisp" diff --git a/frontend/static/languages/code_odin.json b/frontend/static/languages/code_odin.json new file mode 100644 index 000000000..aafab6f83 --- /dev/null +++ b/frontend/static/languages/code_odin.json @@ -0,0 +1,102 @@ +{ + "name": "code_odin", + "noLazyMode": true, + "words": [ + "any", + "auto_cast", + "b16", + "b32", + "b64", + "b8", + "bit_field", + "bit_set", + "bool", + "break", + "byte", + "case", + "cast", + "complex128", + "complex32", + "complex64", + "complex_double", + "complex_float", + "continue", + "cstring", + "defer", + "distinct", + "do", + "double", + "dynamic", + "else", + "enum", + "f16", + "f16be", + "f16le", + "f32", + "f32be", + "f32le", + "f64", + "f64be", + "f64le", + "false", + "float", + "for", + "foreign", + "i128", + "i128be", + "i128le", + "i16", + "i16be", + "i16le", + "i32", + "i32be", + "i32le", + "i64", + "i64be", + "i64le", + "i8", + "if", + "import", + "in", + "int", + "map", + "matrix", + "nil", + "not_in", + "or_else", + "or_return", + "package", + "proc", + "quaternion128", + "quaternion256", + "quaternion64", + "rawptr", + "return", + "rune", + "string", + "struct", + "switch", + "transmute", + "true", + "typeid", + "u128", + "u128be", + "u128le", + "u16", + "u16be", + "u16le", + "u32", + "u32be", + "u32le", + "u64", + "u64be", + "u64le", + "u8", + "uint", + "uintptr", + "union", + "using", + "when", + "where" + ] +}