help-source-highlight
[Top][All Lists]
Advanced

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

Re: [Help-source-highlight] regexp for scheme blocks in lilypond languag


From: Federico Bruni
Subject: Re: [Help-source-highlight] regexp for scheme blocks in lilypond language
Date: Tue, 31 Jan 2012 10:23:30 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111222 Thunderbird/9.0.1

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 :)




reply via email to

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