Skip to content

'var' keyword is highlighted differently when used in for loop. #3932

@safield

Description

@safield

In the following listed example, the var keyword will be highlighted with two different colors.

In the first case it is given semantic token 'keyword' and the other textmate scope 'storage.type.primitive.dart'.

I think it would make sense for the var keyword to be the same color always.

    var list = [];
    for (var item in list) {
      ...
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions