aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorYuan Fu2025-03-11 00:44:49 -0700
committerYuan Fu2025-03-11 01:06:39 -0700
commit57a213c91cdf4b1739b1068c5dc8ae85f1d5302c (patch)
tree2a42b764de76b4762f31eb18d45e24e3bd81822a /src/coding.c
parent03a6d4256f861d71e09206ac09d48f16efd52b64 (diff)
downloademacs-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/coding.c')
0 files changed, 0 insertions, 0 deletions