below: then the major mode needs only write some indentation rules,
and the engine takes care of the rest.
-To enable the parser-based indentation engine, either set
-@code{treesit-simple-indent-rules} or set
-@code{treesit-indent-function}, then call
-@code{treesit-major-mode-setup}. (All that
-@code{treesit-major-mode-setup} does is setting the value of
-@code{indent-line-function} to @code{treesit-indent} and
+To enable the parser-based indentation engine, set either
+@code{treesit-simple-indent-rules} or @code{treesit-indent-function},
+then call @code{treesit-major-mode-setup}. (All that
+@code{treesit-major-mode-setup} does is set the value of
+@code{indent-line-function} to @code{treesit-indent}, and
@code{indent-region-function} to @code{treesit-indent-region}.)
@defvar treesit-indent-function
:host 'html
'((style_element (raw_text) @@capture))))
@end group
+
@group
;; Major modes with multiple languages should always set
-`treesit-language-at-point-function' (which see).
+;; `treesit-language-at-point-function' (which see).
(setq treesit-language-at-point-function
(lambda (pos)
(let* ((node (treesit-node-at pos 'html))