Skip to content

[Regular Expressions] Single opening bracket in charsets is scoped punctuation #417

Description

@deathaxe

What happened?

A single opening [ may appear unescaped in charsets and thus should not be scoped punctuation.definition.set.

[[]

It becomes punctuation not before valid nestedcharset is present.

[[:alpha:]]

or

[[A-Z]-[0-9]]

Activity

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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions