Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript : \ in templates strings are incorrectly highlighted #1679

Closed
Mesteery opened this issue Jan 13, 2021 · 0 comments
Closed

JavaScript : \ in templates strings are incorrectly highlighted #1679

Mesteery opened this issue Jan 13, 2021 · 0 comments
Labels
A-lexing area: changes to individual lexers good first issue Good for newcomers

Comments

@Mesteery
Copy link
Contributor

`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.

@Anteru Anteru added good first issue Good for newcomers A-lexing area: changes to individual lexers labels Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants