[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Fontification for the inner bloc of two nested bloc
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Fontification for the inner bloc of two nested bloc |
Date: |
Wed, 11 Oct 2017 18:00:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
Pierre-André Cornillon <address@hidden> writes:
> what is "the parser" exactly ?
It is "org-element.el".
>> Anyway The bug probably lies in `org-fontify-meta-lines-and-blocks-1'.
>> Do you want to investigate?
>
> I agree that the regular search expression in the
> org-fontify-meta-lines-and-blocks-1 seems to match only one level of
> src block. I am not an elisp programmer but splitting
> the function in two part will allow to make it recursive (and thus to
> cope with several level of nested src block) ? Well it's pure
> speculation without testing...
It probably would. But then, there is `font-lock-multiline', which
prevents further fontification.
Regards,
--
Nicolas Goaziou 0x80A93738