Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Comments inside the var statement do not have the right color #149

Open
ramya-rao-a opened this issue Mar 29, 2018 · 1 comment
Open

Comments inside the var statement do not have the right color #149

ramya-rao-a opened this issue Mar 29, 2018 · 1 comment

Comments

@ramya-rao-a
Copy link

ramya-rao-a commented Mar 29, 2018

Description

Comments inside the var statement do not have the right color

Steps to Reproduce

Use the below content:

package main

var /**/ x /**/, y = /**/ 1 /**/, 2 /**/

func main() {}

It appears as below in VS Code that uses the same grammar as available in this repo
screen shot 2018-03-27 at 11 13 17 am

Expected behavior: [What you expect to happen]
The comment right next to var should have the scope punctuation.definition.comment.go
The variable x should have the scope variable.other.assignment.go

Actual behavior: [What actually happens]
The comment right next to var has the scope keyword.operator.arithmetic.go
The variable x has the scope source.go

@Arcanemagus
Copy link

Confirming this in 1.31.0-nightly9:
image

Note that this is fixed in the Tree-sitter Go parser:
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants