Skip to content

Commit

Permalink
feat(lang): add code odin (@MarcinKuder) (#5921)
Browse files Browse the repository at this point in the history
### 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.

<!-- label(optional scope): pull request title (@your_github_username)
-->

<!-- I know I know they seem boring but please do them, they help us and
you will find out it also helps you.-->

Closes #

<!-- the issue(s) your PR resolves if any (delete if that is not the
case) -->
<!-- please also reference any issues and or PRs related to your pull
request -->
<!-- Also remove it if you are not following any issues. -->

<!-- pro tip: you can mention an issue, PR, or discussion on GitHub by
referencing its hash number e.g:
[#1234](#1234) -->

<!-- pro tip: you can press . (dot or period) in the code tab of any
GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->
  • Loading branch information
MarcinKuder authored Oct 8, 2024
1 parent 0660468 commit 3b2cde8
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/static/languages/_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,8 @@
"code_ook",
"code_typescript",
"code_cobol",
"code_common_lisp"
"code_common_lisp",
"code_odin"
]
}
]
1 change: 1 addition & 0 deletions frontend/static/languages/_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@
,"code_v"
,"code_ook"
,"code_typescript"
,"code_odin"
,"xhosa"
,"code_cobol"
,"code_common_lisp"
Expand Down
102 changes: 102 additions & 0 deletions frontend/static/languages/code_odin.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

0 comments on commit 3b2cde8

Please sign in to comment.