Skip to content

Commit

Permalink
don't set error on backtrack warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Aug 2, 2024
1 parent 9519650 commit b76e9d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parser/src/tokenparser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ impl TokenParser {
)
);
warn!(self, "{}", msg);
self.error_message = Some(msg);
// Setting error is too extreme here (may terminate the sequence)
// self.error_message = Some(msg);
self.pending_bogus_backtrack = backtrack as u32;
backtrack = 0;
}
Expand Down

0 comments on commit b76e9d3

Please sign in to comment.