Skip to content

feat: Support for non-unique capture group names. #180

@SharafMohamed

Description

@SharafMohamed

Request

Currently capture group names must be unique. Ideally, capture group names should be treated identically to variable names, supporting the same set of characters, and allow for repeated names.

Possible implementation

Refactor the code to allow for repeated capture group names:

  • Take into consideration what it means if a variable name and a capture group name are identical.
  • Take into consideration what it means the variable name of the variable containing the capture is identical to the capture group name.
  • Take into consideration if a nested capture has the same name as its parent capture group. (Even though nested captures are buggy atm, this should still be considered to future proof the naming).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions