diff options
author | Yuan Fu <casouri@gmail.com> | 2023-01-29 00:07:46 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2023-01-29 00:12:57 -0800 |
commit | 1970726e26a979243925fabe32686ba2ee757c6b (patch) | |
tree | 5187c732099e11bc4f0c8217c8d47eae77bf7877 /lisp/emacs-lisp/byte-run.el | |
parent | 382e018856a884a96a94ad551dbc1d7b0317b2e5 (diff) | |
download | emacs-1970726e26a979243925fabe32686ba2ee757c6b.tar.gz emacs-1970726e26a979243925fabe32686ba2ee757c6b.tar.bz2 emacs-1970726e26a979243925fabe32686ba2ee757c6b.zip |
Use treesit-subtree-stat to determine treesit--font-lock-fast-mode
* lisp/treesit.el:
(treesit--children-covering-range-recurse): Return nil if LIMIT is
exceeded.
(treesit--font-lock-fast-mode): Change to a ternary value.
(treesit-font-lock-fontify-region): Enable fast mode based on the
result of treesit-subtree-stat.
Diffstat (limited to 'lisp/emacs-lisp/byte-run.el')
0 files changed, 0 insertions, 0 deletions