Re: regexp for scheme blocks in lilypond language
Federico Bruni <[email protected]> Tue, 31 Jan 2012 10:23:30 +0100
| Newsgroups | gmane.comp.gnu.source-highlight.general |
|---|---|
| Message-ID | <[email protected]> |
Can anyone help on it?
It's the last fix before submitting the files.
This is the regexp:
environment scheme_block delim `#'?\((\(*)` @{1} + ")" multiline nested
begin
environment scheme_block delim "(" ")" multiline nested begin
include "url.lang"
end
end
Thanks,
Federico
Il 22/01/2012 14:52, Federico Bruni ha scritto:
> Another small problem I cannot understand.
> The block can have also an optional ' before the brackets, like in this
> example:
>
> #'((basic-distance . 12)
> (minimum-distance . 6)
> (padding . 1)
> (stretchability . 12)))
>
> % checker
>
>
> I've added '? to the regexp I pasted before:
>
> environment scheme_block delim `#'?\((\(*)` @{1} + ")" multiline nested
> begin
> environment scheme_block delim "(" ")" multiline nested begin
> include "url.lang"
> end
> end
>
> The first delimiter works fine, but the highlight goes over the end
> delimiter and the "% checker" string is highlighted as well, while it
> shouldn't.
>
> I guess I'm doing something stupid, but I can't see it.
> Thanks for your help, it's almost done :)