Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/gdscript/indents.scm')
-rw-r--r--runtime/queries/gdscript/indents.scm42
1 files changed, 16 insertions, 26 deletions
diff --git a/runtime/queries/gdscript/indents.scm b/runtime/queries/gdscript/indents.scm
index 3d49aec3..01439e1c 100644
--- a/runtime/queries/gdscript/indents.scm
+++ b/runtime/queries/gdscript/indents.scm
@@ -1,36 +1,26 @@
[
- (if_statement)
- (for_statement)
- (while_statement)
+ (_compound_statement)
(match_statement)
- (pattern_section)
-
+ (parenthesized_expression)
+
+ (pattern_array)
+ (pattern_dictionary)
+ (argument_list)
+ (binary_operator)
+
+ (parameters)
+ (body)
+ (enumerator_list)
+
(function_definition)
- (lambda)
(constructor_definition)
(class_definition)
- (enum_definition)
-
- (dictionary (_))
- (array (_))
- (setget)
] @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
-
+] @outdent