From 855f93b760793b3ea7da72d4d7ec4d295ce0379b Mon Sep 17 00:00:00 2001 From: Temmie <47639983+JustTemmie@users.noreply.github.com> Date: Mon, 24 Apr 2023 20:31:30 +0200 Subject: [PATCH] Add GDScript 2.0 programming language (#4215) JustTemmie * Initial GDScript 2.0 commit * change 2.0 to 2 * whoops --- frontend/static/languages/_groups.json | 1 + frontend/static/languages/_list.json | 1 + .../static/languages/code_gdscript_2.json | 108 ++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 frontend/static/languages/code_gdscript_2.json diff --git a/frontend/static/languages/_groups.json b/frontend/static/languages/_groups.json index 4af19041a..1fa2e8bae 100644 --- a/frontend/static/languages/_groups.json +++ b/frontend/static/languages/_groups.json @@ -485,6 +485,7 @@ "code_elixir", "code_zig", "code_gdscript", + "code_gdscript_2", "code_assembly" ] } diff --git a/frontend/static/languages/_list.json b/frontend/static/languages/_list.json index a351061fb..f382b0997 100644 --- a/frontend/static/languages/_list.json +++ b/frontend/static/languages/_list.json @@ -273,5 +273,6 @@ ,"code_elixir" ,"code_zig" ,"code_gdscript" + ,"code_gdscript_2" ,"code_assembly" ] diff --git a/frontend/static/languages/code_gdscript_2.json b/frontend/static/languages/code_gdscript_2.json new file mode 100644 index 000000000..b35620a02 --- /dev/null +++ b/frontend/static/languages/code_gdscript_2.json @@ -0,0 +1,108 @@ +{ + "name": "code_gdscript_2", + "leftToRight": true, + "words": [ + "var", + "const", + "if", + "elif", + "else", + "for", + "while", + "match", + "break", + "continue", + "pass", + "return", + "class", + "class_name", + "extends", + "is", + "as", + "self", + "tool", + "signal", + "func", + "static", + "enum", + "onready", + "export", + "breakpoint", + "remote", + "master", + "puppet", + "remotesync", + "mastersync", + "puppetsync", + "PI", + "TAU", + "INF", + "NAN", + "in", + "not", + "and", + "or", + "$", + "%", + "->", + ":", + "print()", + "_ready()", + "_process()", + "_input()", + "_physics_process()", + "_enter_tree()", + "_exit_tree()", + "_init()", + "free()", + "queue_free()", + "call_deferred()", + "connect()", + "emit_signal()", + "get_node()", + "get_parent()", + "range()", + "get_tree()", + "get_viewport()", + "get_child()", + "get_children()", + "is_in_group()", + "preload()", + "load()", + "await()", + "resume()", + "assert()", + "str()", + "has()", + "append()", + "get_path()", + "OS", + "Input", + "Vector2", + "Vector3", + "bool", + "int", + "String", + "void", + "float", + "Dictionary", + "Array", + "NodePath", + "Color", + "Object", + "Transform", + "Node", + "Node2D", + "Node3D", + "Control", + "CharacterBody2D", + "CharacterBody3D", + "Sprite2D", + "Sprite3D", + "MeshInstance", + "Camera2D", + "Camera3D", + "res://", + "user://" + ] +}