Skip to content
Snippets Groups Projects
  • Adam Wardynski's avatar
    Fix MatchVector::first_token to ignore negative values. · 1270ffe8
    Adam Wardynski authored
    It was looking for minimum value and Position::Nowhere is
    the smallest you can get value-wise (min_int). So if there was
    an empty Match in a vector, first_token for the vector would
    always end up returning Position::Nowhere, which was wrong
    (empty submatches should've been ignored and Position::Nowhere
    returned only if there were no non-empty alternatives).
    1270ffe8