diff options
author | Sora | 2022-11-21 00:36:19 +0000 |
---|---|---|
committer | GitHub | 2022-11-21 00:36:19 +0000 |
commit | 420e33a60064ad86e9f2f8dd29b3938318355673 (patch) | |
tree | 6979b292f56fee5b999ac467139cb4a2bc9c2657 | |
parent | 117239ea4501bc655d3efd36252c41b42cb6f281 (diff) |
Implement simple indents.scm for Elixir (#4821)
-rw-r--r-- | book/src/generated/lang-support.md | 2 | ||||
-rw-r--r-- | runtime/queries/elixir/indents.scm | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 9187fbfb..59b60851 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 00000000..102b1aad --- /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 |