Macro match_any_or_syntax_error

Source
macro_rules! match_any_or_syntax_error {
    ($lexer: expr, $expectations: expr, $kind: expr) => { ... };
}
Expand description

Macro to avoid repetition in the Lexer::next_token() method.

IMPORTANT: The array of expectations need to be ordered from the largest to the shortest string.