[SVN] Re: Help with language grammar

Michael Sheets mummer at whitefalls.org
Fri Nov 19 21:20:57 UTC 2010


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.


More information about the textmate-dev mailing list