diff options
| author | Connor Lay (Clay) <connorlay@pm.me> | 2022-02-06 14:13:56 -0800 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-10 07:24:08 +0100 |
| commit | 50450867930836500b0c03385efe573beb74fed1 (patch) | |
| tree | dcd3dbe34a6f2cc1e406ff6c7da7310ed94f8319 | |
| parent | 4990db79a87f49e56a3a1bb8507926ebd52ec4cc (diff) | |
Fix Elixir indents to match mix format
| -rw-r--r-- | queries/elixir/indents.scm | 19 |
1 files 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 "|>")) |
