Skip to content

Wrong color for two import declarations with semicolon between #34

@willfaught

Description

@willfaught

(Originally reported at golang/vscode-go#2273.)

The first import path string is colored white instead of orange. If there are two import keywords, the second one is white too.

Steps to reproduce the behavior:

Start a new Go file and paste in this:

package p
import ("p";"q")
import "p";import "q"

Screenshot

Screen Shot 2022-06-01 at 4 59 08 PM

Versions

Found in VS Code, which apparently copies this repo for its Go syntax highlighting.

go version:

go version go1.18.2 darwin/amd64

code -v:

1.67.2
c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions