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

<-chan field name is colored differently than other field names #134

Closed
ramya-rao-a opened this issue Sep 24, 2017 · 1 comment · Fixed by #139
Closed

<-chan field name is colored differently than other field names #134

ramya-rao-a opened this issue Sep 24, 2017 · 1 comment · Fixed by #139
Labels

Comments

@ramya-rao-a
Copy link

From @willfaught on September 20, 2017 18:31

Try with:

var (
    X chan bool
    Y <-chan bool // Y is a different color than X and Z
    Z chan<- bool
)

Screenshot:

screen shot 2017-09-20 at 10 55 39 am

Copied from original issue: microsoft/vscode-go#1233

@ramya-rao-a
Copy link
Author

We use the grammar for Go from http://github.com/atom/language-go

The scope for X in the above example is variable.other.declaration.go where as for Y the scope turns out to be just source.go. Thus the change in color.

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

Successfully merging a pull request may close this issue.

2 participants