|
From: | Lorenzo Bettini |
Subject: | Re: [Help-source-highlight] regexp for scheme blocks in lilypond language |
Date: | Wed, 18 Jan 2012 10:01:23 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
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?).
Hivery 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
[Prev in Thread] | Current Thread | [Next in Thread] |