Skip to content

Conversation

@balajirrao
Copy link
Contributor

No description provided.

}
if (new_min == 0) {
if ((opAfterQuant == REOP_END || (opAfterQuant == REOP_EOL && !gData.multiline)) && gData.parens == null) {
gData.backTrackStackTop.cp = startcp;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment: The backTrackStackTop is setup for greedy quantifiers to point to the REPEAT opcode, where success and failure are decided.

@aardvark179
Copy link
Contributor

Do you have a benchmark for this?

@balajirrao
Copy link
Contributor Author

Do you have a benchmark for this?

I plan to have a benchmark for this before marking it ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants