]> git.eshelyaron.com Git - emacs.git/commitdiff
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)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:19:55 +0000 (21:19 +0100)
* 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)

(cherry picked from commit 54f35137096c8120df13653f287a92755d5036b6)

lisp/progmodes/lua-ts-mode.el

index 6fa3e51b34b25454898fa39431325dd8b2316d15..857be185fcf8eab4d6d225a6b5cbc4039ff29d33 100644 (file)
@@ -281,7 +281,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