Skip to content

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

@deathaxe

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]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions