DisposaBoy / GoSublime

A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
MIT License
3.42k stars 299 forks source link

Add %w to syntax for Errorf wrapping verb. #951

Closed logrusorgru closed 5 years ago

logrusorgru commented 5 years ago

Since, fmt.Errorf has %w verb, we should properly highlight it.

Also, for go1.13 go vet doesn't recognize Errorf and allows the %w for Sprintf and similar methods. For more information see https://github.com/golang/go/issues/32070#issuecomment-557778497