Advance position when encountering an unterminated literal

This commit is contained in:
Charles Baker 2023-07-16 08:12:50 +12:00
parent 031419b0cf
commit b2224991c9

View file

@ -246,6 +246,7 @@ bool GrammarParser::match_literal()
return true;
}
error( LALR_ERROR_UNTERMINATED_LITERAL, "unterminated literal" );
position_ = position;
return false;
}
return false;