aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSora2022-11-21 00:36:19 +0000
committerGitHub2022-11-21 00:36:19 +0000
commit420e33a60064ad86e9f2f8dd29b3938318355673 (patch)
tree6979b292f56fee5b999ac467139cb4a2bc9c2657
parent117239ea4501bc655d3efd36252c41b42cb6f281 (diff)
Implement simple indents.scm for Elixir (#4821)
-rw-r--r--book/src/generated/lang-support.md2
-rw-r--r--runtime/queries/elixir/indents.scm13
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