just as I did for the grammar rules (productions), do create a comment at the head of each generated ACTION block listing the lexer 'start conditions' and matching regular expression: having these bits of info in the generated file(s) helps a lot with analyzing/debugging generated grammars and does not slow them down a bit as comments are removed by any minifier anyway.