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

syntax: accept {,n} as an equivalent to {0,n} #1086

Merged
merged 7 commits into from
Mar 26, 2024

Commits on Sep 7, 2023

  1. syntax: accept {,n} as an equivalent to {0,n}

    Most regular expression engines don't accept the `{,n}` syntax, but some other do it (namely Python's `re` library). This introduces a new parser configuration option that enables the `{,n}` syntax.
    plusvic committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    423493d View commit details
    Browse the repository at this point in the history
  2. style: fix formatting

    plusvic committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    8d70f4a View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2023

  1. Configuration menu
    Copy the full SHA
    c5fa0fa View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. Configuration menu
    Copy the full SHA
    d3a5922 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c4f091f View commit details
    Browse the repository at this point in the history
  3. tests: fix test case

    Now `RepetitionCountUnclosed` error has precedence over `RepetitionCountDecimalEmpty`, even if the `{,n}` syntax is not accepted. I think this is even desirable, as `RepetitionCountUnclosed` describes the situation better when an unclosed `{` is found in the regex.
    plusvic committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    eda9034 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    50a708b View commit details
    Browse the repository at this point in the history