Skip to content

Commit

Permalink
feat(language): add code v (Dlurak) (#4957)
Browse files Browse the repository at this point in the history
* Add the V programming language

* Change from `code_swift` to `code_V`

* Add way more words

All keywords, all types and some built in functions are now included
  • Loading branch information
Dlurak authored Jan 29, 2024
1 parent b0f365e commit b402230
Show file tree
Hide file tree
Showing 3 changed files with 76 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 @@ -547,7 +547,8 @@
"code_zig",
"code_gdscript",
"code_gdscript_2",
"code_assembly"
"code_assembly",
"code_v"
]
}
]
1 change: 1 addition & 0 deletions frontend/static/languages/_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,5 @@
,"code_gdscript"
,"code_gdscript_2"
,"code_assembly"
,"code_v"
]
73 changes: 73 additions & 0 deletions frontend/static/languages/code_v.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"name": "code_v",
"noLazyMode": true,
"words": [
"as",
"asm",
"assert",
"atomic",
"break",
"const",
"continue",
"defer",
"else",
"enum",
"false",
"fn",
"for",
"go",
"goto",
"if",
"import",
"in",
"interface",
"is",
"isreftype",
"lock",
"match",
"module",
"mut",
"none",
"or",
"pub",
"return",
"rlock",
"select",
"shared",
"sizeof",
"spawn",
"static",
"struct",
"true",
"type",
"typeof",
"union",
"unsafe",
"volatile",
"__global",
"__offsetof",

"print",
"println",

"main",
"panic",
"exit",

"bool",
"i8",
"i16",
"int",
"i64",
"u8",
"u16",
"u32",
"u64",
"f32",
"f64",
"string",
"rune",
"voidptr",
"any"
]
}

0 comments on commit b402230

Please sign in to comment.