http://qs321.pair.com?node_id=856215


in reply to Extending a Parse::RecDescent grammar for inline comments

I would use the SKIP directive - the pattern used to skip text between tokens (whitespace by default). I don't remember the syntax for setting the directive, but setting it to
/\s*(?:;[^\n]*\n)?/
should go a long way.