J.D. Smith wrote:
I haven't followed this closely, but in my experience it's a bad idea to use font-lock as a means of tagging structural information.
Completely agreed. This patch is about fontification that reflects the parse tree, not the other way around.
If the issue is attaching faces to alter/impact style, that's a different issue, but for "structural tagging", font lock is non-ideal. Apologies if I'm misreading (some of) the intent here.
The core idea is to assign faces to syntax elements that convey document outline structure (headline stars, list bullets, and list indentation) to enable more flexible control over how outline structure is rendered. A use case example is ensuring consistent alignment of outline elements while using a variable-pitch face for default text.
