common : fix peg parser negation during needs_more_input

This commit is contained in:
Alde Rojas 2025-12-15 23:19:50 -06:00
parent 36524a630b
commit 7f5a7eeb81
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ struct parser_executor {
if (result.need_more_input()) {
// Propagate - need to know what child would match before negating
return result;
return common_peg_parse_result(COMMON_PEG_PARSE_RESULT_NEED_MORE_INPUT, start_pos);
}
// Child failed, so negation succeeds