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 understanding

can 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

_______________________________________________
Help-source-highlight mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-source-highlight

Reply via email to