; * lisp/treesit.el (treesit-node-on): Fix treesit-local-parsers-on.

This commit is contained in:
Yuan Fu 2023-09-07 17:44:32 -07:00
parent be13e8fc01
commit 9f6cf89fb1
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -251,7 +251,7 @@ parser first."
(root (if (treesit-parser-p parser-or-lang)
(treesit-parser-root-node parser-or-lang)
(or (when-let ((parser
(car (treesit-local-parsers-in
(car (treesit-local-parsers-on
beg end (or parser-or-lang
lang-at-point)))))
(treesit-parser-root-node parser))