mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-06 07:31:13 -08:00
Fix treesit--update-ranges-local
* lisp/treesit.el (treesit--update-ranges-local): Don't forget to set local parser's range when creating it.
This commit is contained in:
parent
acdb77c289
commit
fc7c1f1e93
1 changed files with 3 additions and 1 deletions
|
|
@ -681,7 +681,9 @@ parser for EMBEDDED-LANG."
|
|||
(let ((embedded-parser (treesit-parser-create
|
||||
embedded-lang nil t 'embedded))
|
||||
(ov (make-overlay beg end nil nil t)))
|
||||
(overlay-put ov 'treesit-parser embedded-parser)))))))
|
||||
(overlay-put ov 'treesit-parser embedded-parser)
|
||||
(treesit-parser-set-included-ranges
|
||||
embedded-parser `((,beg . ,end)))))))))
|
||||
|
||||
(defun treesit-update-ranges (&optional beg end)
|
||||
"Update the ranges for each language in the current buffer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue