[TxMt] Re: ActionScript 3 firstLineMatch

Michael Sheets mummer at whitefalls.org
Sat May 23 18:53:19 UTC 2009


On May 23, 2009, at 1:30 AM, Brenton Simpson wrote:

> I've noticed that in ActionScript 3.tmLanguage from Simon Gregory's
> AS3 bundle, firstLineMatch is defined to be \bAS3\b.  I don't know ANY
> ActionScript class file that would match that pattern.
>
> I believe this is the correct firstLineMatch for AS3:
> package\s?([\w\.]*)\s?{

You need to add a ^ assertion to the beginning of that at least. And  
you need to make sure it can't get triggered in D, Doxygen, Groovy,  
Java, JavaScript, Processing, Scala. (The languages I quickly scanned  
to see have a package keyword that could get tripped up).



More information about the textmate mailing list