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

NodePattern: Add <> for matching children in any order. #6965

Merged
merged 1 commit into from Apr 25, 2019

Commits on Apr 25, 2019

  1. [Fix rubocop#6841] NodePattern: Add <> for matching children in any o…

    …rder.
    
    These can be used multiple times in the same sequence as well as
    nested.
    
    Limitations: A sequence can only contain a single ellipsis (contained
    or not within a <> sequence).
    
    Other implementation changes:
    - Captures are now an array (e.g. `capture0` is now `captures[0]`)
    - Temporary variables like `temp1` were renamed to `node1`.
    - Reading tokens until a delimiter was factorized into `tokens_until`
    marcandre committed Apr 25, 2019
    Configuration menu
    Copy the full SHA
    73b20bb View commit details
    Browse the repository at this point in the history