Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.17.0, 1.15.3, 1.16.1
-
None
-
None
Description
If use greedy option on a looping pattern which is at the end of the whole pattern, the matching result is not "greedy".
Example1
pattern: A.oneOrMore().consecutive().greedy() (SKIP_TO_NEXT)
sequence: a1, a2, a3
result: [a1] [a2] [a3]
Example2
pattern: B.next(A).oneOrMore().consecutive().greedy() (SKIP_TO_NEXT)
sequence: b1, a1, a2, a3
result: [b1 a1]