]> git.eshelyaron.com Git - emacs.git/commit
Improve comment indenting in 'lua-ts-mode'
authorjohn muhl <jm@pub.pink>
Sun, 10 Nov 2024 17:26:33 +0000 (11:26 -0600)
committerEshel Yaron <me@eshelyaron.com>
Wed, 20 Nov 2024 12:34:24 +0000 (13:34 +0100)
commit2765c42efdf0380e34c4f7bf6d09a15db97e095c
treece3a6e0e369538d9903980d0abf16537dc1c03ce
parent14fd24fcee021962acc07b43f9da73ecd1aac596
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)

(cherry picked from commit d592832504554c6ee30bea263e55dc84feaec18d)
lisp/progmodes/lua-ts-mode.el
test/lisp/progmodes/lua-ts-mode-resources/indent.erts