]> git.eshelyaron.com Git - emacs.git/commit
Support indented continuation lines in lua-ts-mode
authorjohn muhl <jm@pub.pink>
Sat, 6 Jan 2024 15:36:33 +0000 (09:36 -0600)
committerEshel Yaron <me@eshelyaron.com>
Fri, 12 Jan 2024 16:56:19 +0000 (17:56 +0100)
commit03b2e13a63291fbbd1aaf67e0043c4900b310dcf
treed546a2871f5cec9c5adf3ce01f34ae7174b9d3fc
parentcdb6d8b8b215f35fe8efd16e084a0234bf3e312a
Support indented continuation lines in lua-ts-mode

* lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
Add a rule to indent multi-line assignments and if statements.
(lua-ts-indent-continuation-lines): New user option.
* test/lisp/progmodes/lua-ts-mode-resources/indent.erts: Add
tests.  (Bug#68279)

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