-
Notifications
You must be signed in to change notification settings - Fork 626
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
Update javascript lexer #1814
Update javascript lexer #1814
Conversation
Merged, thanks! What's the rationale for removing |
Because this lexer doesn't really support TSX. |
Using a variable named I pinpointed the cause to the following code, introduced by this PR: pygments/pygments/lexers/javascript.py Lines 88 to 89 in 513f8fc
|
|
My code is in strict mode, and it is currently using a variable named I think that's because
Though, I don't think Pygments can distinguish between the "regular" and "module" types… |
Partially resolves #1781.