xo-tokenizer: fix: missing assignment
This commit is contained in:
parent
6f42b348e2
commit
3746f32529
1 changed files with 4 additions and 0 deletions
|
|
@ -648,6 +648,10 @@ namespace xo {
|
|||
|
||||
if (!sr.first.is_valid() && eof) {
|
||||
sr.first = this->notify_eof();
|
||||
/* always consume remainder of input here.
|
||||
* ambiguous prefix can represent at most one token
|
||||
*/
|
||||
sr.second = input;
|
||||
}
|
||||
|
||||
return sr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue