Re: regexp for scheme blocks in lilypond language

Lorenzo Bettini <[email protected]> Wed, 18 Jan 2012 10:01:23 +0100
Newsgroups gmane.comp.gnu.source-highlight.general
Message-ID <[email protected]>
On 18/01/2012 09:54, Federico Bruni wrote:
> Hi,
>
> lilypond files can contain blocks of scheme code in several ways.
> The main challenge is handling conflicts between single and multiline
> and especially blocks where the number of parentheses cannot be known in
> advance (there's a way to match balanced parentheses?).

Hi

very quick answer: you can match balanced parenthesis using 'nested' 
(see the documentation);

please let me know whether this way you can solve this issue.

cheers
	Lorenzo


-- 
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net