syntax.parse.parser.Parser.check is now private


#1

I don’t know when, but some time between May and now, syntax::parse::parser::Parser::check became private. Is there an alternative?

(Sorry, I’m not very familiar with syntax plugins.)


#2

Looks like I can write this:

parser.look_ahead(0, |x| x == my_token)

But it’s obviously a hack. :neutral_face:

Edit: And it doesn’t add to the expected tokens, either.