]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/treesit.el (treesit-node-on): Fix treesit-local-parsers-on.
authorYuan Fu <casouri@gmail.com>
Fri, 8 Sep 2023 00:44:32 +0000 (17:44 -0700)
committerYuan Fu <casouri@gmail.com>
Fri, 8 Sep 2023 00:44:32 +0000 (17:44 -0700)
lisp/treesit.el

index 266f6e6493bb8274092634d073721de96ef6c4da..57521a236e079564fdc70552b8a16a9d8e22a411 100644 (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))