diff options
| author | Yuan Fu | 2025-03-11 00:44:49 -0700 |
|---|---|---|
| committer | Yuan Fu | 2025-03-11 01:06:39 -0700 |
| commit | 57a213c91cdf4b1739b1068c5dc8ae85f1d5302c (patch) | |
| tree | 2a42b764de76b4762f31eb18d45e24e3bd81822a /src | |
| parent | 03a6d4256f861d71e09206ac09d48f16efd52b64 (diff) | |
| download | emacs-57a213c91cdf4b1739b1068c5dc8ae85f1d5302c.tar.gz emacs-57a213c91cdf4b1739b1068c5dc8ae85f1d5302c.zip | |
Add overlays for non-local tree-sitter parsers too
* lisp/treesit.el (treesit-local-parsers-at):
(treesit-local-parsers-on): Exclude non-local parsers.
(treesit--cleanup-local-range-overlays): Don't delete non-local
parsers (because those are managed by the major mode).
(treesit--update-ranges-non-local): Apply overlay for each ranges.
(treesit--update-ranges-local): Ignore
overlays with non-local parsers, and set
'treesit-parser-local-p' property to t.
(treesit--update-range-1): Additionally pass modified-tick to
treesit--update-ranges-non-local.
(treesit-major-mode-setup): Don't delete non-local parsers.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions