aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/powershell/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/powershell/indents.scm')
-rw-r--r--runtime/queries/powershell/indents.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/runtime/queries/powershell/indents.scm b/runtime/queries/powershell/indents.scm
new file mode 100644
index 000000000..3be2ed161
--- /dev/null
+++ b/runtime/queries/powershell/indents.scm
@@ -0,0 +1,41 @@
+(function_statement
+ "}" @indent.branch) @indent.begin
+
+(param_block
+ [
+ "param"
+ "("
+ ")"
+ ] @indent.branch) @indent.begin
+
+(script_block_expression
+ "}" @indent.branch) @indent.begin
+
+(statement_block
+ "}" @indent.branch) @indent.begin
+
+(switch_body
+ "}" @indent.branch) @indent.begin
+
+(array_expression
+ ")" @indent.branch) @indent.begin
+
+(hash_literal_expression
+ "}" @indent.branch) @indent.begin
+
+(class_statement
+ "}" @indent.branch) @indent.begin
+
+(class_method_definition
+ "}" @indent.branch) @indent.begin
+
+[
+ "}"
+ ")"
+] @indent.end
+
+[
+ (comment)
+ (string_literal)
+ (ERROR)
+] @indent.auto