pub(crate) fn has_trailing_space(&self, tok: &Token) -> bool {
        match self
            .code
            .get(tok.loc.1 + 1..)
            .map(|s| s.chars().next())
            .flatten()
        {
            Some(ch) => ch.is_ascii_whitespace(),
            _ => false,
        }
    }
Examine if the next char of the token is space.
ruruby-parse/src/parser/lexer.rs