Skip to content

No recognition of JS/TS private identifiers #2671

@isc-aray

Description

@isc-aray

Pygments does not recognize JS/TS private identifiers (which start with a pound sign, e.g. #page).

Minimal example:

class test {
    #testprop: string
}

Expect no highlighting for bad syntax, but the # symbol is highlighted as a syntax error.

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