]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last tree-sitter changes in Elisp manual.
authorBasil L. Contovounesios <basil@contovou.net>
Wed, 22 May 2024 10:02:35 +0000 (12:02 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 23 May 2024 08:30:01 +0000 (10:30 +0200)
(cherry picked from commit 394aac7b187628303aa2b772b29ffb5718910f94)

doc/lispref/modes.texi
doc/lispref/parsing.texi

index 361a5e37d02a508ace070658bdc11c0aa02a3701..cf67b319924ec6ccc71840f9ff1be833819961eb 100644 (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
index 6afdce377285ba32e1a10322e044d8c6d0f5b3c5..63551442b0367b44100e38fcf6a6f751b5e437c9 100644 (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))