When a token string is too short to be parsed into a valid expression, grammar issues a ParsedStatementTooShort diagnostic with a hint of what could have been a next valid token.
However, this was done assuming there would always be such a next a next token, and panicked if not.
This PR fixes it by providing an alternate diagnostic message.
When a token string is too short to be parsed into a valid expression,
grammar
issues aParsedStatementTooShort
diagnostic with a hint of what could have been a next valid token.However, this was done assuming there would always be such a next a next token, and panicked if not.
This PR fixes it by providing an alternate diagnostic message.