If @var{language} is non-@var{nil}, only include parsers for that
language. And only include parsers with @var{tag}. @var{tag} defaults
-to @code{nil}.
+to @code{nil}. If @var{tag} is @code{t}, include parsers in the
+returned list regardless of their tag.
@end defun
@defun treesit-parser-delete parser
return Qnil;
}
-/* If TAG is t, include all parsers regardless of their tag. But
- don't document this until there's some actual need for it. */
DEFUN ("treesit-parser-list",
Ftreesit_parser_list, Streesit_parser_list,
0, 3, 0,
If LANGUAGE is non-nil, only return parsers for that language.
-The returned list only contain parsers with TAG. TAG defaults to
-nil. */)
+The returned list only contain parsers with TAG. TAG defaults to nil.
+If TAG is t, include parsers in the returned list regardless of their
+tag. */)
(Lisp_Object buffer, Lisp_Object language, Lisp_Object tag)
{
struct buffer *buf;