From: Yuan Fu Date: Mon, 17 Feb 2025 21:41:30 +0000 (-0800) Subject: ; Update comments for mhtml-ts-mode--treesit-indent-rules X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e3e94bfe137cb3762f26d0893031d8cee0cd9523;p=emacs.git ; Update comments for mhtml-ts-mode--treesit-indent-rules * lisp/textmodes/mhtml-ts-mode.el: (mhtml-ts-mode--treesit-indent-rules): Update comments. (cherry picked from commit 1d27028df803e4dc1c063db5593222311838e051) --- diff --git a/lisp/textmodes/mhtml-ts-mode.el b/lisp/textmodes/mhtml-ts-mode.el index 64f44751213..83f8879f427 100644 --- a/lisp/textmodes/mhtml-ts-mode.el +++ b/lisp/textmodes/mhtml-ts-mode.el @@ -315,8 +315,10 @@ NODE and PARENT are ignored." (defun ,(regexp-opt (list css--treesit-defun-type-regexp))))) "Settings for `treesit-thing-settings'.") -;; We use a function instead of a variable, because doesn't exist when -;; at compile time (unless we `eval-when-compile'). +;; We use a function instead of a variable, because +;; `js--treesit-indent-rules' and `css--treesit-indent-rules' doesn't +;; exist when at compile time (unless we `eval-when-compile', but that +;; doesn't feel like the right solution to me). (defun mhtml-ts-mode--treesit-indent-rules () "Return intent rules for `mhtml-ts-mode'." (treesit--indent-rules-optimize