Fix comment indent in 'lua-ts-mode' and old grammar
authorjohn muhl <jm@pub.pink>
Thu, 26 Dec 2024 00:03:50 +0000 (18:03 -0600)
committerEli Zaretskii <eliz@gnu.org>
Thu, 26 Dec 2024 09:01:49 +0000 (11:01 +0200)
* 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

index 641ea4261b0130ef415fda3906193c16e45f8e64..3f8bfaae6d5cd5e4f53979c4e1ffbf3c6af2296e 100644 (file)
@@ -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