See this discussion: eb5875bc6a (commitcomment-17970220)
eb5875bc6a (commitcomment-17970220)
Based on a pull request by Futago-za Ryuu (@futagoza): https://github.com/pegjs/pegjs/pull/329 Resolves #318.