The standard ascii::space_type
skipper does of course not skip my comments. The docs mention you can make your own skip parser but there is no example of actually how to do it.
I'd just need an example code or anything, I've been googling for 2 hours now.
Please don't point me to the examples, the few links that work are hopelessly outdated, dealing with Spirit 1.6.
After some experimentation, I have found a way to specify a custom skipper and will outline it here:
The secret lies in the call of the parser. For some reason, when you want to parse this using
parse_phrase
, you have to give a skipper grammar object. I was not aware of this:This works.