xo-tokenizer: fix: missing assignment

This commit is contained in:
Roland Conybeare 2024-08-06 23:11:17 -04:00
commit 3746f32529

View file

@ -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;