Skip to content

JavaScript : \ in templates strings are incorrectly highlighted #1679

@Mesteery

Description

@Mesteery
`something with \ this`;  // '\' is highlighted as error
`something with \n this`;  // same
`something with \b this`;  // same
`something with \etc this`;  // same

Same problem with JavaScript variants (TypeScript for example).
Example : https://pygments.org/demo/?lexer=js&code=%60this%5Cndoesn't%5Cnwork%60%3B.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lexingarea: changes to individual lexersgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions