Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber expressions tree regexp #237

Merged
merged 7 commits into from Jul 14, 2017

Conversation

aslakhellesoy
Copy link
Contributor

Summary

Better support for nested and optional capture group

Details

This change introduces a TreeRegexp class, which returns matches as a tree of Group, which match the nested structure of capture groups in the regular expression source. Non-capturing groups are excluded.

Motivation and Context

The tree structure makes it possible to access match groups with more precision than with a flat structure, and this is needed in order to support (nested) capture groups in parameter types.

How Has This Been Tested?

Lots of tests

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist:

  • I've added tests for my code.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

subrepo:
  subdir:   "cucumber-expressions/java"
  merged:   "a23cf840"
upstream:
  origin:   "https://github.com/cucumber/cucumber-expressions-java.git"
  branch:   "master"
  commit:   "a23cf840"
git-subrepo:
  version:  "0.4.0"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "db54757"
subrepo:
  subdir:   "cucumber-expressions/javascript"
  merged:   "6e948bf0"
upstream:
  origin:   "https://github.com/cucumber/cucumber-expressions-javascript.git"
  branch:   "master"
  commit:   "6e948bf0"
git-subrepo:
  version:  "0.4.0"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "db54757"
subrepo:
  subdir:   "cucumber-expressions/java"
  merged:   "f9ca1ec2"
upstream:
  origin:   "https://github.com/cucumber/cucumber-expressions-java.git"
  branch:   "master"
  commit:   "f9ca1ec2"
git-subrepo:
  version:  "0.4.0"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "db54757"
@aslakhellesoy aslakhellesoy merged commit cb5af36 into master Jul 14, 2017
@aslakhellesoy aslakhellesoy deleted the cucumber-expressions-tree-regexp branch July 14, 2017 12:50
@lock
Copy link

lock bot commented Oct 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant