Sublime Forum

[Bug] Incorrect Go Syntax Highlight

#1
type T func() int

func F(x int, y func() int, z func(func() int) complex128)

// this code is rendered incorrectly in sublime

built-in syntax highlight for Go doesn’t work if func arguments are used.

the same problem is reported at here Aug 2013

but, since now, it has not been fixed. as a gopher, i report one more.

it can be solved by using plugin (like GoSublime), but it is in the part of sublime-plugin, not sublime itself.

.

0 Likes

#2

Syhtax highlighting problems in the default packages should be reported here: https://github.com/sublimehq/Packages/issues

0 Likes