]> git.eshelyaron.com Git - emacs.git/commitdiff
; Update comments for mhtml-ts-mode--treesit-indent-rules
authorYuan Fu <casouri@gmail.com>
Mon, 17 Feb 2025 21:41:30 +0000 (13:41 -0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 08:54:20 +0000 (09:54 +0100)
* lisp/textmodes/mhtml-ts-mode.el:
(mhtml-ts-mode--treesit-indent-rules): Update comments.

(cherry picked from commit 1d27028df803e4dc1c063db5593222311838e051)

lisp/textmodes/mhtml-ts-mode.el

index 64f44751213289072befc9e7792a1059c27baedc..83f8879f4279dc1294ca9505b3415e2ff9615f1e 100644 (file)
@@ -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