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: Sun, 22 Jan 2012 14:52:04 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111222 Thunderbird/9.0.1

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]