diff options
author | Wilhelm H Kirschbaum <wkirschbaum@gmail.com> | 2023-04-02 11:26:02 +0200 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2023-04-04 23:01:21 -0700 |
commit | eb0a9e463347b0191a07befcc3138db37f77b402 (patch) | |
tree | 145868d3df59cf67169d04766eb3564d56643c57 /test | |
parent | 830bf66dadbb4b9b9393ade53b890b5497bdf479 (diff) | |
download | emacs-eb0a9e463347b0191a07befcc3138db37f77b402.tar.gz |
Improve list indentation for elixir-ts-mode
* lisp/progmodes/elixir-ts-mode.el:
(elixir-ts--argument-indent-offset): Add empty line check.
(elixir-ts--argument-indent-anchor): Change ERROR offset.
* test/lisp/progmodes/elixir-ts-mode-resources/indent.erts:
Add test.
Diffstat (limited to 'test')
-rw-r--r-- | test/lisp/progmodes/elixir-ts-mode-resources/indent.erts | 20 |
1 files changed, 19 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 ea5d9e62240..9ad604e5198 100644 --- a/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts +++ b/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts @@ -1,6 +1,5 @@ Code: (lambda () - (setq indent-tabs-mode nil) (elixir-ts-mode) (indent-region (point-min) (point-max))) @@ -330,3 +329,22 @@ defmodule Foo do end end =-=-= + +Code: + (lambda () + (elixir-ts-mode) + (newline) + (indent-for-tab-command)) + +Name: New list item + +=-= +[ + :foo,$ +] +=-= +[ + :foo, + $ +] +=-=-= |