Hello,

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

> I still believe that explicitly extending the region is a saner
> approach, it's the documented one at least.

The only sane approach for fontification is to use the parser. Any
solution relying to regexps is bound to fail somewhere, because Org
syntax cannot be parsed by regexps only. This would require to rewrite
the fontification process completely.

> Maybe you could rewrite my function in a better way using the
> precomputed latex regexps and augmenting them with #+BEGIN/END
> counterparts.

Per above, I'm not really interested in writing yet another workaround
for something that is going to fail anyway. For the time being, I just
accept that fontification is not perfect.

Regards,

-- 
Nicolas Goaziou

Reply via email to