Skip to content

Cannot parse Unicode ranges after question mark as in " ?[\p{L}]+" #305

@iboB

Description

@iboB

A regular expression of the form "something, question mark, range or Unicode chars" is not parsed correctly.

As seen in the example: https://gcc.godbolt.org/z/41ea8anqT

  • [\p{L}]+|[\p{N}]+ - works
  • ?\p{L}+| ?\p{N}+ - works
  • ?[\p{L}]+| ?[\p{N}]+ - doesn't compile even though it's valid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions