mirror of
https://github.com/cwbaker/lalr.git
synced 2026-09-26 16:33:18 +03:00
Advance position when encountering an unterminated literal
This commit is contained in:
parent
031419b0cf
commit
b2224991c9
1 changed files with 1 additions and 0 deletions
|
|
@ -246,6 +246,7 @@ bool GrammarParser::match_literal()
|
|||
return true;
|
||||
}
|
||||
error( LALR_ERROR_UNTERMINATED_LITERAL, "unterminated literal" );
|
||||
position_ = position;
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue