Improve comment indenting in 'lua-ts-mode'
authorjohn muhl <jm@pub.pink>
Sun, 10 Nov 2024 17:26:33 +0000 (11:26 -0600)
committerEli Zaretskii <eliz@gnu.org>
Thu, 14 Nov 2024 08:14:46 +0000 (10:14 +0200)
commitd592832504554c6ee30bea263e55dc84feaec18d
treec0f14eddc82e6c74d45cbeec99ad46d1af7c4c42
parent6bc44ccf287a398d47563ddf60d13784cd64720f
Improve comment indenting in 'lua-ts-mode'

* lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
Align single line comments with the surrounding context.
(lua-ts--comment-first-sibling-matcher): Check that comment is
the first sibling.
(lua-ts--multi-line-comment-start): New function.
* test/lisp/progmodes/lua-ts-mode-resources/indent.erts:
Add tests.  (Bug#74298)
lisp/progmodes/lua-ts-mode.el
test/lisp/progmodes/lua-ts-mode-resources/indent.erts