You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-atomic for more loops followed by boundaries (#117892)
Today we will make a loop like `\w+\b` or `\d+\b` atomic, because the only thing the `\b` can match after that point is a non-word character, and that means it can't give back a word character or digit to satisfy the loop. But we can extend that further, since we can use the same logic to make such a loop atomic as long as the only things it can match are any subset of word characters. So, for example `[a-f0-9]+\b`.
caseRegexNodeKind.Onelazy or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomicwhensubsequent.M==0&&!RegexCharClass.CharInClass(subsequent.Ch,node.Str!):
2183
2183
caseRegexNodeKind.Setlazy or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomicwhensubsequent.M==0&&!RegexCharClass.MayOverlap(node.Str!,subsequent.Str!):
2184
-
caseRegexNodeKind.Boundarywhennode.M>0&&node.StrisRegexCharClass.WordClass or RegexCharClass.DigitClass:
0 commit comments