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?{