summaryrefslogtreecommitdiff
path: root/vendor/queries/elixir/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/queries/elixir/indents.scm')
-rw-r--r--vendor/queries/elixir/indents.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/queries/elixir/indents.scm b/vendor/queries/elixir/indents.scm
new file mode 100644
index 00000000..cc535930
--- /dev/null
+++ b/vendor/queries/elixir/indents.scm
@@ -0,0 +1,27 @@
+; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389:
+; runtime/queries/elixir/indents.scm.
+; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE,
+; https://mozilla.org/MPL/2.0/).
+
+[
+ (anonymous_function)
+ (do_block)
+ (stab_clause)
+ (map)
+ (list)
+ (tuple)
+] @indent
+
+; The else/rescue/catch/after clause blocks nest *inside* the do_block, which
+; already provides the body's one level of indent; the keyword itself outdents
+; back to the construct's level.
+[
+ "end"
+ "else"
+ "rescue"
+ "catch"
+ "after"
+ "]"
+ "}"
+ ")"
+] @outdent