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:
parent
c64e650fb3
commit
84e4f1259b
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue