instanceof shouldn't be scoped as a type
Opened this issue · 0 comments
alexr00 commented
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Steps to Reproduce
-
Create a new empty file.
-
Change language mode to PHP.
-
Enter the following:
<?php if ($x instanceof Y) { }
I would expect instanceof
to have the scope keyword.operator.instanceof
or keyword.operator.expression.instanceof
, but instead it has keyword.operator.type`.
Reproduces how often: always
Versions
Version 0.44.4 of the grammar, from commit 882f6c0
Additional Information
Tested in VS Code version 1.44
Originally from @stakx in microsoft/vscode#94979