Packages: [TSX] Arrow function's return type annotation breaks the Syntax Highlighting.

Created on 5 Nov 2020  路  6Comments  路  Source: sublimehq/Packages

  • Sublime Version: Build 4090
  • OS Version: macOS Catalina 10.15.7

Without type annotation:

image

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

image

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):

image

Please let me know if more information is needed. Thank you.

Most helpful comment

Since there's another issue already open, this one should probably be closed.

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings