Skip to content

Backslashes in character classes confuse regex support #30

@cemerick

Description

@cemerick

This is not highlighted properly:

#"[\\]"

i.e. the closing quote is not colored to match the opening quote. And, though I don't understand how it happens, a regex containing a backslash in a character class causes paredit to "fail" anywhere later in the same file (i.e. matching pairs of parens or brackets aren't inserted); removing the regex in question makes paredit work properly again.

FWIW, the real-world regex I had in a file that prompted this issue was #"[/\\]([^/\\]+)$".

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