Closed lionel-rowe closed 6 months ago
Color schemes depend on syntax definitions to give colors to different tokens. In this case, the token of abc
with linebreaks is not correctly recognized as a function call. Unfortunately color schemes like Monokai Pro can't color those correctly. Best to take it up with the TypeScript package.
Examples:
Declaring a function signature with generics seems to be pretty robust to changes in whitespace and surrounding context, but passing type arguments is extremely brittle.
Expected:
abc
to be consistently green (3/16)<>
to be consistently gray (3/16)()
to be consistently gray (8/12)X
,Y
,Z
to be consistently blue (3/8)1
,2
,3
to be consistently purple (6/8)Code: