Carlos Pita <carlosjosep...@gmail.com> writes:

> 2. If the parser identifies a block how is it in a better position to flag
> it as outdated regarding fontification? Do you mean completely
> circumventing the search based font lock mechanism with its multiline
> property and region extensions? That is, directly setting face related
> properties and forcing a refresh of the region?

Indeed. Barring headlines, info lines and properties drawers, I suggest
to have Font lock delegate fontification to a function that would parse
an appropriate region and apply faces according to the AST.

One subtle problem is to determine the region to parse according to the
changes, but this is not specific to fontification. I.e., this function
needs to be written for proper parser caching anyway.

Reply via email to