On Nov 19, 2010, at 8:14 AM, Mads Hartmann Jensen wrote: > 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.
You can use a look-ahead assertion if it is a one-line string, but otherwise it is impossible. _______________________________________________ textmate-dev mailing list [email protected] http://lists.macromates.com/listinfo/textmate-dev
