mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
; * lisp/treesit.el (treesit-buffer-root-node): Fix docstring.
This commit is contained in:
parent
977a7607b6
commit
8b41b66e6f
1 changed files with 3 additions and 2 deletions
|
|
@ -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)))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue