Skip to content

Commit

Permalink
Make backwards lookahead into a state machine.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrhn committed Nov 8, 2024
1 parent ffe269d commit 775c7aa
Show file tree
Hide file tree
Showing 8 changed files with 1,634 additions and 4,816 deletions.
2 changes: 1 addition & 1 deletion pkgs/characters/lib/src/characters_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ class StringCharacterRange implements CharacterRange {
}
}
state = move(state, category);
if (state & maskBreak == flagBreak && --count == 0) {
if (state & maskBreak != flagNoBreak && --count == 0) {
_move(newStart, index);
return true;
}
Expand Down
Loading

0 comments on commit 775c7aa

Please sign in to comment.