emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-30 54f35137096: Fix comment indent in 'lua-ts-mode' and old gramma


From: Eli Zaretskii
Subject: emacs-30 54f35137096: Fix comment indent in 'lua-ts-mode' and old grammar
Date: Thu, 26 Dec 2024 04:02:20 -0500 (EST)

branch: emacs-30
commit 54f35137096c8120df13653f287a92755d5036b6
Author: john muhl <jm@pub.pink>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix comment indent in 'lua-ts-mode' and old grammar
    
    * lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
    Improve multi-line comment indention for pre-0.0.19 grammars that
    used a different structure for comment start/end markers.
    (Bug#75107)
---
 lisp/progmodes/lua-ts-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el
index 641ea4261b0..3f8bfaae6d5 100644
--- a/lisp/progmodes/lua-ts-mode.el
+++ b/lisp/progmodes/lua-ts-mode.el
@@ -293,7 +293,7 @@ values of OVERRIDE."
           lua-ts--multi-line-comment-start
           (parent-is "comment_content")
           (parent-is "string_content")
-          (node-is "]]"))
+          (or (node-is "]]") (node-is "comment_end")))
       no-indent 0)
      ((and (n-p-gp "field" "table_constructor" "arguments")
            lua-ts--multi-arg-function-call-matcher



reply via email to

[Prev in Thread] Current Thread [Next in Thread]