Hey guys,
I have the two follwing rules in my repository:
regexp-triple = {
name = 'string.quoted.regex.scala';
begin = '"""';
end = '"""\.r';
patterns = (
{ include = 'source.regexp.oniguruma'; },
);
};
string-triple = {
name = 'string.quoted.triple.scala';
begin = '"""';
end = '"""';
}
If I use this and have something like this:
val myvar = """42"""
val something else = ....
It will highlight everything after the first """ because that's the beginning
of string.quoted.regexp.scala and it won't stop because there's no .r at the
end.
Is there a trick I can do to only begin matching the string.quoted.regexp.scala
iff it ends with .r - otherwise it should fall back to
string.quoted.triple.scala.
Thanks,
Mads Hartmann Jensen
_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/listinfo/textmate-dev