; Update comments for mhtml-ts-mode--treesit-indent-rules

* lisp/textmodes/mhtml-ts-mode.el:
(mhtml-ts-mode--treesit-indent-rules): Update comments.
This commit is contained in:
Yuan Fu 2025-02-17 13:41:30 -08:00
parent 237afc82b2
commit 1d27028df8
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View 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