You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return false has the same coloring for both words--the default textmate syntax highlighting has different colors for the two. I'm guessing that false is being classified as a keyword rather than a value?
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Nov 17, 2020
yes. false and true are classified as keywords when they are used as
pre-defined boolean constants. Typescript (and therefore semantic tokens)
doesn't have any way to describe that. (iota is treated the same, for lack
of anything better to do with it, although maybe it should be a readonly
variable)
semantic tokens handles various weird cases better than the textmate grammar
var double = 4
type foo struct {
iota: bool
}
const (
f int = iota
g
iota int = 4
)
return false
has the same coloring for both words--the default textmate syntax highlighting has different colors for the two. I'm guessing thatfalse
is being classified as a keyword rather than a value?/cc @pjweinb
The text was updated successfully, but these errors were encountered: