Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

instanceof shouldn't be scoped as a type #388

Open
1 task
alexr00 opened this issue Apr 14, 2020 · 0 comments
Open
1 task

instanceof shouldn't be scoped as a type #388

alexr00 opened this issue Apr 14, 2020 · 0 comments

Comments

@alexr00
Copy link

alexr00 commented Apr 14, 2020

Prerequisites

Description

Steps to Reproduce

  1. Create a new empty file.

  2. Change language mode to PHP.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant