]> git.eshelyaron.com Git - emacs.git/commit
Support tree-sitter local parsers
authorYuan Fu <casouri@gmail.com>
Wed, 6 Sep 2023 02:57:34 +0000 (19:57 -0700)
committerYuan Fu <casouri@gmail.com>
Wed, 6 Sep 2023 04:03:38 +0000 (21:03 -0700)
commitd05494a9ff89eb0a669274428994fbc58a6e4541
tree95ba76ec50b494b7a50cc90897a73b6fbb25c5bb
parentcf0986401cee914207e2d81febf62189f74ab40d
Support tree-sitter local parsers

* doc/lispref/parsing.texi (Multiple Languages): Update manual.
* lisp/treesit.el (treesit-range-settings): Add LOCAL-P to range
setting.
(treesit-range-rules): Support :local keyword.
(treesit-local-parsers-at)
(treesit-local-parsers-in)
(treesit--update-ranges-local): New functions.
(treesit-update-ranges)
(treesit-font-lock-fontify-region)
(treesit--indent-1): Support local parsers and prioritize it over
global parsers.
doc/lispref/parsing.texi
lisp/treesit.el