Skip to content

Regex source generator should include capture group name in comment #62715

Closed

Description

@stephentoub

Given an expression like:

"^(?<LINE>[0-9]*)-(?<ENDLINE>[0-9]*)$"

the regex source generator will output comments for the groups like:

// 1st capturing group

We should include the name if one exists, e.g.

// 1st capturing group ("LINE")

Activity

  1. added this to the 7.0.0 milestone on Dec 13, 2021
  2. ghost added
    untriaged
    on Dec 13, 2021
  3. added
    good first issue
    help wanted
    on Dec 13, 2021
  4. ghost added
    in-pr
    on Jan 1, 2022
  5. pedrobsaila commented on Jan 1, 2022

    @pedrobsaila
    Contributor

    I made a PR #63255 for this issue

  6. removed
    untriaged
    on Jan 11, 2022
  7. ghost removed
    in-pr
    on Jan 11, 2022
  8. ghost locked as resolved and limited conversation to collaborators on Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Text.RegularExpressionsgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions