Eagerly indent first field in tables in 'lua-ts-mode'

* lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
Properly indent the first field of a table when it appears on a
line by itself.  (Bug#69088)
This commit is contained in:
john muhl 2024-02-12 18:46:51 -06:00 committed by Eli Zaretskii
parent c64e650fb3
commit 84e4f1259b

View file

@ -317,6 +317,8 @@ values of OVERRIDE."
(node-is ")")
(node-is "}"))
standalone-parent 0)
((match null "table_constructor")
standalone-parent lua-ts-indent-offset)
((or (and (parent-is "arguments") lua-ts--first-child-matcher)
(and (parent-is "parameters") lua-ts--first-child-matcher)
(and (parent-is "table_constructor") lua-ts--first-child-matcher))