Without type annotation:

With type annotation (already broken, note the colour of identifier, not green anymore):

With type void (this will actually break syntax significantly in a function's body and further in the code, looks like void is recognized as an operator here):

Please let me know if more information is needed. Thank you.
Looks very much like https://github.com/sublimehq/Packages/issues/2468 but it's possible that your issue touches on something extra (at least the void thing).
EDIT: Well, not the void thing as that is also the root issue there.
@rchl yes indeed! looks similar. damn, i did few quick searches before reporting it, should have been more diligent.
I think this is definitely a duplicate of #2468 and should probably be closed.
On the bright side, https://github.com/sublimehq/Packages/pull/2574 should hopefully resolve this.
Thank you!
Guys, should I close this issue, or you'll link it (because I can't) to aforementioned PR so it will be automatically closed once it's merged?
Since there's another issue already open, this one should probably be closed.
鈩癸笍 Issue closed as duplicate of https://github.com/sublimehq/Packages/issues/2468
Most helpful comment
Since there's another issue already open, this one should probably be closed.