summaryrefslogtreecommitdiff
path: root/runtime/queries/gdscript/indents.scm
diff options
context:
space:
mode:
authorErasin2023-02-12 20:03:02 +0000
committerGitHub2023-02-12 20:03:02 +0000
commitc71b4c5579fdc753e62300f5ee6ca5e747a98e13 (patch)
treede58f120b19bc5de70b9096d79c3d3bd8912b3bf /runtime/queries/gdscript/indents.scm
parentef221abe83862cfdfcce358bbecc14080824abdb (diff)
Update grammar for godot (#5944)
* update grammar for gdscript. * add comment injections for gdscript. * add indent for gdscript * add file-type support for godot-resource
Diffstat (limited to 'runtime/queries/gdscript/indents.scm')
-rw-r--r--runtime/queries/gdscript/indents.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/runtime/queries/gdscript/indents.scm b/runtime/queries/gdscript/indents.scm
new file mode 100644
index 00000000..1ab41a44
--- /dev/null
+++ b/runtime/queries/gdscript/indents.scm
@@ -0,0 +1,35 @@
+[
+ (if_statement)
+ (for_statement)
+ (while_statement)
+ (match_statement)
+ (pattern_section)
+
+ (function_definition)
+ (constructor_definition)
+ (class_definition)
+ (enum_definition)
+
+ (dictionary (_))
+ (array (_))
+] @indent
+
+[
+ (if_statement)
+ (for_statement)
+ (while_statement)
+ (match_statement)
+ (pattern_section)
+
+ (function_definition)
+ (class_definition)
+] @extend
+
+
+[
+ (return_statement)
+ (break_statement)
+ (continue_statement)
+ (pass_statement)
+] @extend.prevent-once
+