sublimehq / Packages

Syntax highlighting files shipped with Sublime Text and Sublime Merge
https://sublimetext.com
Other
2.95k stars 588 forks source link

[Go] Improve generic type support #4041

Open deathaxe opened 1 month ago

deathaxe commented 1 month ago

Addresses some issues described in #3512 with least effort.

It may not address all theoretical edge cases though.

Especially Go's meta scopes don't follow guidelines by any means, so seriously fixing issues would probably end up in significant refactoring, which is not scope of this PR.

Primary goal is to support nested generics to certain amount of complexity and correctly highlight generic function/method calls, which are visually most obvious issues.