atom/language-php

instanceof shouldn't be scoped as a type

Opened this issue · 0 comments

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