; Fix last tree-sitter changes in Elisp manual.

This commit is contained in:
Basil L. Contovounesios 2024-05-22 12:02:35 +02:00
parent e153093f0a
commit 394aac7b18
2 changed files with 7 additions and 7 deletions

View file

@ -5185,12 +5185,11 @@ It is more convenient to use the simple indentation engine described
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

View file

@ -1899,9 +1899,10 @@ directly translate into operations shown above.
: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))