summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWilhelm H Kirschbaum <wkirschbaum@gmail.com>2023-04-27 12:13:25 +0200
committerEli Zaretskii <eliz@gnu.org>2023-04-29 12:16:56 +0300
commite03cfec0a455dd8c496d33c422c8edb9ac5a4005 (patch)
tree489863fcfc84245323a0e7ee2856f7f7953d1aa2 /test
parente0e93f7eecca4fc12ba898a9bc923566ff45c646 (diff)
downloademacs-e03cfec0a455dd8c496d33c422c8edb9ac5a4005.tar.gz
Improve call indentation for elixir-ts-mode
* lisp/progmodes/elixir-ts-mode.el (elixir-ts--indent-rules): Change match order. (Bug#63110) * test/lisp/progmodes/elixir-ts-mode-resources/indent.erts: Add test case.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/elixir-ts-mode-resources/indent.erts14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts b/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts
index 4eb6e768b96..1f855d3c977 100644
--- a/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts
+++ b/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts
@@ -193,7 +193,19 @@ tuple = {
}
=-=-=
-Name: Spec and method
+Name: Call with keywords
+
+=-=
+def foo() do
+ bar(:one,
+ :two,
+ one: 1,
+ two: 2
+ )
+end
+=-=-=
+
+Name: Call with @spec
=-=
@spec foobar(