From 420e33a60064ad86e9f2f8dd29b3938318355673 Mon Sep 17 00:00:00 2001 From: Sora Date: Mon, 21 Nov 2022 01:36:19 +0100 Subject: [PATCH] Implement simple indents.scm for Elixir (#4821) --- book/src/generated/lang-support.md | 2 +- runtime/queries/elixir/indents.scm | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 runtime/queries/elixir/indents.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 9187fbfb1212..59b60851aac6 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -25,7 +25,7 @@ | edoc | ✓ | | | | | eex | ✓ | | | | | ejs | ✓ | | | | -| elixir | ✓ | ✓ | | `elixir-ls` | +| elixir | ✓ | ✓ | ✓ | `elixir-ls` | | elm | ✓ | | | `elm-language-server` | | elvish | ✓ | | | `elvish` | | env | ✓ | | | | diff --git a/runtime/queries/elixir/indents.scm b/runtime/queries/elixir/indents.scm new file mode 100644 index 000000000000..102b1aadfb9c --- /dev/null +++ b/runtime/queries/elixir/indents.scm @@ -0,0 +1,13 @@ +[ + (after_block) + (anonymous_function) + (catch_block) + (do_block) + (else_block) + (rescue_block) + (stab_clause) +] @indent + +[ + "end" +] @outdent