typename Context::token_type const& option,
Container const& values, typename Context::token_type const& act_token)
{
- typedef typename Context::token_type token_type;
typedef typename Context::iterator_type iterator_type;
if (option.get_value() == "pp") {
Container pragma;
iterator_type end = ctx.end();
for (iterator_type it = ctx.begin(s.begin(), s.end());
- it != end && token_id(*it) != T_EOF; ++it)
+ it != end && token_id(*it) != T_EOF;
+ std::advance(it, 2)) // skip over whitespace
{
pragma.push_back(*it);
- it++;
}
// prepend the newly generated token sequence to the 'pending'