Need to turn off whitespace eating _before_ the close paren

This commit is contained in:
K. Lange 2021-01-04 19:07:19 +09:00
parent 61a38f3a5f
commit bfae38538d

View File

@ -1361,8 +1361,8 @@ static void statement() {
static void grouping(int canAssign) {
startEatingWhitespace();
expression();
consume(TOKEN_RIGHT_PAREN, "Expect ')' after expression.");
stopEatingWhitespace();
consume(TOKEN_RIGHT_PAREN, "Expect ')' after expression.");
}
static void unary(int canAssign) {