Skip to content

"import" is highlighted as a keyword in Node.js "import.meta.dirname" expression #1071

@hisbvdis

Description

@hisbvdis

JavaScript and TypeScript Nightly version: 6.0.20260416

Code

import path from "naode:path";

import.meta.dirname;

Issue

In "textmate scopes" section the "keyword.control.import.js" token is shown.
But this "import" word is not a "keyword".

Steps to reproduce

  1. Open .js file
  2. Write import.meta.dirname
  3. Click "import" word
  4. Press "Ctrl+Shift+P" type and select "Developer: Inspect Editor Tokens and Scopes"
🖼️ Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions