From: Yuan Fu Date: Fri, 8 Sep 2023 00:44:32 +0000 (-0700) Subject: ; * lisp/treesit.el (treesit-node-on): Fix treesit-local-parsers-on. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f6cf89fb1882e97bf39353070f77796d087e8f9;p=emacs.git ; * lisp/treesit.el (treesit-node-on): Fix treesit-local-parsers-on. --- diff --git a/lisp/treesit.el b/lisp/treesit.el index 266f6e6493b..57521a236e0 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -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))