From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Fontification for the inner bloc of two nested bloc Date: Wed, 11 Oct 2017 18:00:39 +0200 Message-ID: <874lr5fzdk.fsf@nicolasgoaziou.fr> References: <87k203fp6o.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2JR6-00023g-3u for emacs-orgmode@gnu.org; Wed, 11 Oct 2017 12:00:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2JR5-00009F-Ef for emacs-orgmode@gnu.org; Wed, 11 Oct 2017 12:00:44 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:59599) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2JR5-00008C-7v for emacs-orgmode@gnu.org; Wed, 11 Oct 2017 12:00:43 -0400 In-Reply-To: (=?utf-8?Q?=22Pierre-Andr=C3=A9?= Cornillon"'s message of "Wed, 11 Oct 2017 17:54:08 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: =?utf-8?Q?Pierre-Andr=C3=A9?= Cornillon Cc: Org Mode List Hello, Pierre-Andr=C3=A9 Cornillon 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, --=20 Nicolas Goaziou 0x80A93738