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

Generic multi-line strings break syntax highlighting.

Open a-stewart opened this issue 2 years ago • 0 comments

The following code breaks syntax highlighting:

type myString[D interface{}] string

var properlyColored string = `Multi-line
string with no generic type
is colored properly.`

var notProperlyColored myString[int] = `Multi-line
string with generic type
not colored properly.`

// This messes up all the coloring after as well.
var someInt int = 10

func (s *stringValue) Get() any {
	return string(*s)
}

image

a-stewart avatar Jan 19 '23 15:01 a-stewart