aboutsummaryrefslogtreecommitdiffstats
path: root/queries/nu/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/nu/indents.scm')
-rw-r--r--queries/nu/indents.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/queries/nu/indents.scm b/queries/nu/indents.scm
new file mode 100644
index 000000000..c344d4abd
--- /dev/null
+++ b/queries/nu/indents.scm
@@ -0,0 +1,26 @@
+; Forked from https://github.com/nushell/tree-sitter-nu
+; Copyright (c) 2019 - 2022 The Nushell Project Developers
+; Licensed under the MIT license.
+[
+ (expr_parenthesized)
+ (parameter_bracks)
+ (val_record)
+ (val_list)
+ (val_closure)
+ (val_table)
+ (block)
+] @indent.begin
+
+[
+ "}"
+ "]"
+ ")"
+] @indent.end
+
+[
+ "}"
+ "]"
+ ")"
+] @indent.branch
+
+(comment) @indent.auto