Skip to content

Catastrophic backtracking on Java's properties Lexer #2356

@SCH227

Description

@SCH227

The following pattern is inefficient:
r'([ \f\t]*)([=:]*)([ \f\t]*)(.*(?<!\\)(?:\\{2})*)(\\)(?!\\)$
https://github.com/pygments/pygments/blob/master/pygments/lexers/configs.py#L141

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lexingarea: changes to individual lexers

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions