atom / language-go

Go language package for Atom
Other
106 stars 65 forks source link

In TextMate grammar, string in map declaration is incorrectly scoped #170

Closed alexr00 closed 5 years ago

alexr00 commented 5 years ago

Given this go snippet:

package main

var test map[string]string = map [string]string{}
//                     ^this string

The value indicated in the snippet above is incorrectly scoped as variable.other.assignement.go.

rsese commented 5 years ago

Thanks for the report! Looks like this isn't an issue with Tree-sitter (1.37.0-nightly22 on macOS 10.12.6):

go-map

So we'll go ahead and close, but let me know if I'm misunderstanding :v:


As you may have heard, we are migrating from our old first-mate grammar engine to the new Tree-sitter engine. This will enable a number of new features, more consistent syntax highlighting, and better performance, among other benefits. In order to free up our limited resources, we have decided to stop maintaining the first-mate grammar when there is a built-in Tree-sitter grammar available. Since this issue applies only to the first-mate grammar, we are going to close it. Please let us know if we have misunderstood the description of the problem.