Java regex nested assertions - #1661
Conversation
…pair instead of Unit.
…handle nested groups' outward requirements.
|
regarding
you should make PRs toward |
|
Hi @arcuri82, the plan was to first merge java-regex-simple-assertions into master and then github would change the base automatically to master for the following PRs. This way we can have smaller PRs with smaller diffs. Should we do something about the current open PR? |
|
hi @lmasroca . sorry, I am not sure I am following... how does that make "smaller" PRs? maybe i m missing something here.... isn't java-regex-simple-assertions now bigger because it contains all changes from this merged PR? |
|
Yes it is bigger now, but that is because the other branches were merged into java-regex-simple-assertions first instead of the other way around. If java-regex-simple-assertions was merged first into master then the next PR (which was #1656) would get re-targeted to master automatically, and both before and after the diff would just show that branches' own changes. This allows us to work further on changes not yet merged while keeping the diffs for each PR to just the changes that PR made. We probably should have made this clearer and marked the branch dependencies clearly. |
|
right now do not revert, as i think it would make things worse. let's just stabilize java-regex-simple-assertions, and merge that into |
|
Okay, java-regex-simple-assertions should be stable now, and the requested change got implemented already. Will keep this in mind to avoid this issue again in the future, sorry for the confusion! |
Allowed assertions (currently only lookaheads #1646 and lookbehinds #1656) to appear nested (within a group
()) on java regex. Allowed assertion requirements and repairs to escape their groups into neighboring terms. The outwards requirements of a group must be resolved by that group's neighboring genes during repairs for the repairs to be successful.Note: Does not allow assertions to appear on quantified groups.