From: john muhl Date: Thu, 26 Dec 2024 00:03:50 +0000 (-0600) Subject: Fix comment indent in 'lua-ts-mode' and old grammar X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=436c12382668381aa2a46d06e3e5a7a5ea3e86ab;p=emacs.git 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) (cherry picked from commit 54f35137096c8120df13653f287a92755d5036b6) --- diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el index 6fa3e51b34b..857be185fcf 100644 --- a/lisp/progmodes/lua-ts-mode.el +++ b/lisp/progmodes/lua-ts-mode.el @@ -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