Closed DetachHead closed 1 year ago
This is because of textmate limitation we only have 3 levels of type arguments.
@sheetalkamat is there an open issue anywhere for that? Seems like a pretty big limitation especially since TM is used in vscode. As an IDE it should have pretty solid syntax highlighting imo
Would it be possible to use the language server for syntax highlighting instead?
what I meant was because of how textmate grammar works where we have to determine based on single line syntax to determine if the lookahead is actually function call or "<" etc, we have written rule to lookup 3 levels of type arguments in function call. https://github.com/microsoft/TypeScript-TmLanguage/blob/master/TypeScript.YAML-tmLanguage#L72
TS and JS Grammar Extension version: idk, that link is a 404 but i'm pretty sure it's bundled with vscode? my vscode version is 1.76.0
Code
screenshot
(notice the different colours on the types
string
andnumber
, and the red>>>
)