vscode
vscode copied to clipboard
Go syntax highlighting incorrectly identifies multiplication operator as address operator
When using the multiplication operator (*) in Go code, the syntax highlighter incorrectly identifies it as "keyword.operator.address.go" instead of "keyword.operator.arithmetic.go".
Example code
func Abs(v Vertex) float64 {
return math.Sqrt(v.X*v.X + v.Y*v.Y)
}
When inspecting the token at the * between v.X and v.X, it shows "keyword.operator.address.go" when it should be an arithmetic operator.