]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/treesit.el (treesit-update-ranges): Update all parsers.
authorYuan Fu <casouri@gmail.com>
Fri, 4 Nov 2022 17:03:17 +0000 (10:03 -0700)
committerYuan Fu <casouri@gmail.com>
Fri, 4 Nov 2022 17:03:17 +0000 (10:03 -0700)
lisp/treesit.el

index d7acf6a42846e3fcd5d81d81862169a03f261522..b17480e0d4e12919e96bc76e4ec16786fe3e402b 100644 (file)
@@ -476,7 +476,11 @@ region."
                             host-lang query beg end))
                (set-ranges (treesit--merge-ranges
                             old-ranges new-ranges beg end)))
-          (treesit-parser-set-included-ranges parser set-ranges))))))
+          (dolist (parser (treesit-parser-list))
+            (when (eq (treesit-parser-language parser)
+                      language)
+              (treesit-parser-set-included-ranges
+               parser set-ranges))))))))
 
 (defun treesit-parser-range-on (parser beg &optional end)
   "Check if PARSER's range covers the portion between BEG and END.