Sublime Forum

ST3: Bug: C# Generic Methods

#1

I didn’t see a bug report site/forum anywhere, so I’m posting this here.

By specifying a type parameter in a method declaration, the method name will not be recognized as a symbol, so no syntax highlighting or @symbol jumps, etc.

private ExampleMethod<T>(T exampleParam) { }

0 Likes

#2

Hi, I went ahead and fixed this. Extract the C#.tmLanguage file using Package Resource Viewer, then on line 544, replace with this;

<string>(\w.]+)\s*(&lt;\w*&gt;)?\s*\(</string>

Then put it in your Packages/User folder. It’s working for me!

0 Likes