From 50450867930836500b0c03385efe573beb74fed1 Mon Sep 17 00:00:00 2001 From: "Connor Lay (Clay)" Date: Sun, 6 Feb 2022 14:13:56 -0800 Subject: Fix Elixir indents to match mix format --- queries/elixir/indents.scm | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/queries/elixir/indents.scm b/queries/elixir/indents.scm index 2c141929..517f6694 100644 --- a/queries/elixir/indents.scm +++ b/queries/elixir/indents.scm @@ -1,18 +1,23 @@ [ - (arguments) + (block) (do_block) (list) (map) + (stab_clause) (tuple) + (arguments) ] @indent [ ")" "]" - "end" + "after" + "catch" + "else" + "rescue" "}" - (after_block) - (else_block) - (rescue_block) - (catch_block) -] @branch + "end" +] @indent_end @branch + +; Elixir pipelines are not indented, but other binary operator chains are +((binary_operator operator: _ @_operator) @indent (#not-eq? @_operator "|>")) -- cgit v1.2.3