Function: treesit--font-lock-notifier
treesit--font-lock-notifier is a byte-compiled function defined in
treesit.el.gz.
Signature
(treesit--font-lock-notifier RANGES PARSER)
Documentation
Ensures updated parts of the parse-tree are refontified.
RANGES is a list of (BEG . END) ranges, PARSER is the tree-sitter parser notifying of the change.
Source Code
;; Defined in /usr/src/emacs/lisp/treesit.el.gz
(defun treesit--font-lock-notifier (ranges parser)
"Ensures updated parts of the parse-tree are refontified.
RANGES is a list of (BEG . END) ranges, PARSER is the tree-sitter
parser notifying of the change."
(with-current-buffer (treesit-parser-buffer parser)
(dolist (range ranges)
(when treesit--font-lock-verbose
(message "Notifier received range: %s-%s"
(car range) (cdr range)))
(with-silent-modifications
(put-text-property (car range) (cdr range) 'fontified nil)))))