Skip to content

Syntax highlighting for generic get methods inconsistent #4957

@icnahom

Description

@icnahom

Describe the bug
Highlighting error: Generic get function is treated as keyword when proving the generic type.

To Reproduce
Take this code snippet:

void main() {
  get();
  get<int>();
}

void get<T>() {}

Expected behavior
Having consistent highlighting that resembles a method instead of a keyword.

Screenshots
image

Please complete the following information:

You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.

  • Operating System and version: "Windows 10 Pro" 10.0 (Build 22635)
  • VS Code version: win 1.85.2
  • Dart extension version: 3.80.0
  • Dart/Flutter SDK version: 3.2.3/3.16.3
  • Target device (if the issue relates to Flutter debugging):

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions