emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is there no inline-src syntax highlighting?


From: Sébastien Miquel
Subject: Re: Why is there no inline-src syntax highlighting?
Date: Mon, 29 Mar 2021 15:58:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0

Hi,

I don't use inline src blocks, but your work makes me want to start !

Timothy writes:
there's just one thing I
haven't been able to work out --- how to have font-lock apply to
*multiple*  inline src blocks on one line.

With multiple inline src blocks that each have a result part,
fontification appears to work.

I think there are these two issues with the code :
 - When an inline src blocks has no matching result part,
   `org-fontify-inline-src-blocks-1` returns nil. It should return t
   instead, then it will be called again, to fontify the next block.
 - If an inline src block without results is followed by a src block
   with results, your function skips over the second src block.
   Perhaps you should assume that only whitespace separates a src
   block and its results (this is already assumed for subsequent
   evaluations of the block  to replace the results).

Regards,

--
Sébastien Miquel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]