Function: treesit-parser-changed-regions
treesit-parser-changed-regions is a function defined in treesit.c.
Signature
(treesit-parser-changed-regions PARSER)
Documentation
Force PARSER to re-parse and return the affected regions.
Return ranges as a list of (BEG . END). If there's no need to re-parse or no affected ranges, return nil.
Other relevant functions are documented in the treesit group.
Shortdoc
;; treesit
(treesit-parser-changed-regions parser)
e.g. => '((1 . 10) (24 . 58))
Source Code
// Defined in /usr/src/emacs/src/treesit.c
{
treesit_check_parser (parser);
treesit_initialize ();
return treesit_ensure_parsed (parser);
}