From 8a22ae7a7fb57c0b92e53573ff506f7e03a3201d Mon Sep 17 00:00:00 2001 From: Dlurak <84224239+Dlurak@users.noreply.github.com> Date: Tue, 23 Jan 2024 18:10:57 +0100 Subject: [PATCH 1/3] Add the V programming language --- frontend/static/languages/_groups.json | 3 ++- frontend/static/languages/_list.json | 1 + frontend/static/languages/code_v.json | 34 ++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 frontend/static/languages/code_v.json diff --git a/frontend/static/languages/_groups.json b/frontend/static/languages/_groups.json index d0e3d893bf90..9d650ef01c34 100644 --- a/frontend/static/languages/_groups.json +++ b/frontend/static/languages/_groups.json @@ -547,7 +547,8 @@ "code_zig", "code_gdscript", "code_gdscript_2", - "code_assembly" + "code_assembly", + "code_v" ] } ] diff --git a/frontend/static/languages/_list.json b/frontend/static/languages/_list.json index 787b6cad10f4..4a8739893acc 100644 --- a/frontend/static/languages/_list.json +++ b/frontend/static/languages/_list.json @@ -317,4 +317,5 @@ ,"code_gdscript" ,"code_gdscript_2" ,"code_assembly" + ,"code_v" ] diff --git a/frontend/static/languages/code_v.json b/frontend/static/languages/code_v.json new file mode 100644 index 000000000000..450ccd3aa819 --- /dev/null +++ b/frontend/static/languages/code_v.json @@ -0,0 +1,34 @@ +{ + "name": "code_swift", + "noLazyMode": true, + "words": [ + "struct", + "fn", + "main", + "for", + "if", + "enum", + "const", + "module", + "import", + "string", + "u32", + "u16", + "u8", + "int", + "f32", + "print", + "println", + "in", + "eprint", + "eprintln", + "unsafe", + "or", + "mut", + "pub", + "nil", + "break", + "main", + "return" + ] +} From f244d2acb2bdfb9bd43d8eb60294a5d79874832e Mon Sep 17 00:00:00 2001 From: Dlurak <84224239+Dlurak@users.noreply.github.com> Date: Tue, 23 Jan 2024 22:22:48 +0100 Subject: [PATCH 2/3] Change from `code_swift` to `code_V` --- frontend/static/languages/code_v.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/static/languages/code_v.json b/frontend/static/languages/code_v.json index 450ccd3aa819..8e73b9d55100 100644 --- a/frontend/static/languages/code_v.json +++ b/frontend/static/languages/code_v.json @@ -1,5 +1,5 @@ { - "name": "code_swift", + "name": "code_v", "noLazyMode": true, "words": [ "struct", @@ -28,7 +28,6 @@ "pub", "nil", "break", - "main", "return" ] } From 263447665a501759f2afad61cbbb87c5e9cb59a8 Mon Sep 17 00:00:00 2001 From: Dlurak <84224239+Dlurak@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:28:14 +0100 Subject: [PATCH 3/3] Add way more words All keywords, all types and some built in functions are now included --- frontend/static/languages/code_v.json | 80 ++++++++++++++++++++------- 1 file changed, 60 insertions(+), 20 deletions(-) diff --git a/frontend/static/languages/code_v.json b/frontend/static/languages/code_v.json index 8e73b9d55100..27231eafa4b9 100644 --- a/frontend/static/languages/code_v.json +++ b/frontend/static/languages/code_v.json @@ -2,32 +2,72 @@ "name": "code_v", "noLazyMode": true, "words": [ - "struct", + "as", + "asm", + "assert", + "atomic", + "break", + "const", + "continue", + "defer", + "else", + "enum", + "false", "fn", - "main", "for", + "go", + "goto", "if", - "enum", - "const", - "module", "import", - "string", - "u32", - "u16", - "u8", - "int", - "f32", - "print", - "println", "in", - "eprint", - "eprintln", - "unsafe", - "or", + "interface", + "is", + "isreftype", + "lock", + "match", + "module", "mut", + "none", + "or", "pub", - "nil", - "break", - "return" + "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" ] }