Skip to content

Incorrect Javascript syntax highlighting with typeof value and less than (or equal to) operator #1050

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

Open
zedd3v opened this issue Apr 3, 2025 · 2 comments · May be fixed by #1054
Open
Assignees

Comments

@zedd3v
Copy link

zedd3v commented Apr 3, 2025

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.96.2
  • OS Version: macOS 15.3.2 (24D81), Darwin arm64 24.3.0

Steps to Reproduce:

x = typeof y < 'z';
if (x) {
} else {
}

Image

Image

Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.98.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@mjbvz mjbvz transferred this issue from microsoft/vscode Apr 7, 2025
@RedCMD
Copy link

RedCMD commented Apr 15, 2025

partial fix could be to check if a semi colon exists after the open bracket <
then assume < is operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants