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

Add support for capturing variables from pattern expressions #245

Merged
merged 2 commits into from
Feb 21, 2021

Commits on Feb 15, 2021

  1. Configuration menu
    Copy the full SHA
    93a327b View commit details
    Browse the repository at this point in the history
  2. Add support for capturing variables from pattern expressions.

    This changes the expansion of pattern expressions when used in a labeled
    sequence such that the remainder of the sequence is lexically within the
    match arm so that the variable is in scope.
    
    Literal expressions are also included for the sake of generating nicer
    code by not generating RuleResult in a `match` that is itself
    immediately matched upon.
    
    Fixes #227
    kevinmehall committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    6ecc6f2 View commit details
    Browse the repository at this point in the history