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-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~158 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=54f35137096c8120df13653f287a92755d5036b6;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) --- 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