Add GDScript programming language (#3792) ErrorInCode27

* Initial GDScript addition

* Add parentheses and a couple extra types/symbols

* Reorganization to make it understandable

Co-authored-by: [Error_27] <43973418+Error-In-Code@users.noreply.github.com>
This commit is contained in:
[Error_27] 2022-12-05 12:52:47 -05:00 committed by GitHub
parent 46d7a78ffe
commit 3f6bf924ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 112 additions and 1 deletions

View file

@ -431,7 +431,8 @@
"code_arduino",
"code_systemverilog",
"code_elixir",
"code_zig"
"code_zig",
"code_gdscript"
]
},
{

View file

@ -255,4 +255,5 @@
,"code_systemverilog"
,"code_elixir"
,"code_zig"
,"code_gdscript"
]

View file

@ -0,0 +1,109 @@
{
"name": "code_gdscript",
"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",
"setget",
"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()",
"yield()",
"resume()",
"assert()",
"str()",
"has()",
"append()",
"get_path()",
"OS",
"Input",
"Vector2",
"Vector3",
"bool",
"int",
"String",
"void",
"float",
"Dictionary",
"Array",
"NodePath",
"Color",
"Object",
"Transform",
"Node",
"Node2D",
"Spatial",
"Control",
"KinematicBody",
"KinematicBody2D",
"Sprite",
"Sprite3D",
"MeshInstance",
"Camera",
"Camera2D",
"res://",
"user://"
]
}