better-go-syntax
better-go-syntax copied to clipboard
Generic multi-line strings break syntax highlighting.
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)
}