[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 84e4f1259b5: Eagerly indent first field in tables in 'lua-ts-mode
From: |
Eli Zaretskii |
Subject: |
master 84e4f1259b5: Eagerly indent first field in tables in 'lua-ts-mode' |
Date: |
Sat, 17 Feb 2024 03:57:45 -0500 (EST) |
branch: master
commit 84e4f1259b54442f52183c1ccee72a417e0a2658
Author: john muhl <jm@pub.pink>
Commit: Eli Zaretskii <eliz@gnu.org>
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)
---
lisp/progmodes/lua-ts-mode.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el
index dc2a8fcec1e..c7f5ac50b04 100644
--- a/lisp/progmodes/lua-ts-mode.el
+++ b/lisp/progmodes/lua-ts-mode.el
@@ -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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 84e4f1259b5: Eagerly indent first field in tables in 'lua-ts-mode',
Eli Zaretskii <=