mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Support lua-ts-mode in align.el
* lisp/align.el (align-rules-list): Add lua-ts-mode. (Bug#66466) * lisp/progmodes/lua-ts-mode.el (lua-ts-mode): Indent region before aligning. * test/lisp/align-tests.el (align-lua): * test/lisp/align-resources/lua-ts-mode.erts: Add tests.
This commit is contained in:
parent
cb89cbc406
commit
a838bcb23c
4 changed files with 89 additions and 1 deletions
|
|
@ -577,7 +577,18 @@ The possible settings for `align-region-separate' are:
|
|||
"="
|
||||
(group (zero-or-more (syntax whitespace)))))
|
||||
(group . (1 2))
|
||||
(modes . '(conf-toml-mode toml-ts-mode))))
|
||||
(modes . '(conf-toml-mode toml-ts-mode lua-mode lua-ts-mode)))
|
||||
|
||||
(double-dash-comment
|
||||
(regexp . ,(rx (group (zero-or-more (syntax whitespace)))
|
||||
"--"
|
||||
(zero-or-more nonl)))
|
||||
(modes . '(lua-mode lua-ts-mode))
|
||||
(column . comment-column)
|
||||
(valid . ,(lambda ()
|
||||
(save-excursion
|
||||
(goto-char (match-beginning 1))
|
||||
(not (bolp)))))))
|
||||
"A list describing all of the available alignment rules.
|
||||
The format is:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue