better-go-syntax icon indicating copy to clipboard operation
better-go-syntax copied to clipboard

Incorrect Textmate scopes for keyword.operator.arithmetic

Open nan0tube opened this issue 3 years ago • 0 comments

Under certain circumstances, * is wrongly indicated as textmate scope keyword.operator.address.go when used as a multiplication operator (keyword.operator.arithmetic.go).

To reproduce, use the following:

package main

import "fmt"

func main() {
	fmt.Print(1*2 + 3) // Bad - * indicated as keyword.operator.address.go
	fmt.Print(4 * 5)   // Good - * indicated as keyword.operator.arithmetic.go
}

Ref: https://github.com/golang/vscode-go/issues/1524

nan0tube avatar May 27 '21 06:05 nan0tube