; * lisp/treesit.el (treesit-buffer-root-node): Fix docstring.

This commit is contained in:
Yuan Fu 2026-04-27 19:39:49 -07:00
parent 977a7607b6
commit 8b41b66e6f
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -361,8 +361,9 @@ If INCLUDE-NODE is non-nil, return NODE if it satisfies PRED."
Use the first parser in the parser list if LANGUAGE is omitted.
If LANGUAGE is non-nil, use the first parser for LANGUAGE with TAG in
the parser list. If there's no such parser, return nil. TAG defaults
to nil."
the parser list. TAG defaults to nil.
If no parser is available, throw `treesit-no-parser'."
(let ((parser
(or (car (treesit-parser-list nil language tag))
(signal 'treesit-no-parser (list language)))))