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
should go a long way./\s*(?:;[^\n]*\n)?/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Extending a Parse::RecDescent grammar for inline comments
by bronto (Priest) on Aug 20, 2010 at 14:47 UTC | |
by ikegami (Patriarch) on Aug 20, 2010 at 14:58 UTC | |
by bronto (Priest) on Aug 23, 2010 at 10:53 UTC | |
by ikegami (Patriarch) on Aug 23, 2010 at 17:34 UTC |
In Section
Seekers of Perl Wisdom