|
From: | Federico Bruni |
Subject: | Re: [Help-source-highlight] regexp for scheme blocks in lilypond language |
Date: | Sun, 22 Jan 2012 12:20:41 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 |
Il 21/01/2012 15:24, Lorenzo Bettini ha scritto:
Thanks, this should be the direction, but it's not so easy. First, the doc says: "Note that, in order for a delimited language element to be nested, its starting and ending elements must be different" I may be wrong, but I would add: they also have to be specular. In my case delimiters are not specular.no, that's not requested :) note that end delimiter may refer to start delimiter (using the regex syntax for referring the matched part of another expression); this is the case for lua.lang where nested comments can have different syntax and the delimiter has to match the starting delimiter and refers to it (with this respect, source-highlight is pretty powerful, but I may be biased ;)
thanks, but I'm still far away from understandingcan you give me some pointer/keyword which can help me understanding the following regexp (in particular, I can't understand (=*) and @{1})?
environment comment delim `--\[(=*)\[` "]" + @{1} + "]" multiline nested begin
include "url.lang" environment comment delim "[[" "]]" multiline nested begin include "url.lang" end end
[Prev in Thread] | Current Thread | [Next in Thread] |