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 | highlights(cpp): Highlight method with nested qualified_identifier (diff) | |
| download | nvim-treesitter-50450867930836500b0c03385efe573beb74fed1.tar nvim-treesitter-50450867930836500b0c03385efe573beb74fed1.tar.gz nvim-treesitter-50450867930836500b0c03385efe573beb74fed1.tar.bz2 nvim-treesitter-50450867930836500b0c03385efe573beb74fed1.tar.lz nvim-treesitter-50450867930836500b0c03385efe573beb74fed1.tar.xz nvim-treesitter-50450867930836500b0c03385efe573beb74fed1.tar.zst nvim-treesitter-50450867930836500b0c03385efe573beb74fed1.zip | |
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 2c1419294..517f66940 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 "|>")) |
