Closed cmdcolin closed 2 years ago
The problem occurs due to useRef<ReturnType<typeof setTimeout>>
, that is, typeof
used in the generic arguments of a generic type argument of a generic type.
Reduced reproduction: type T = Foo<Bar<typeof baz>>
I am using a stripped down config on neovim 0.5 using nvim.appimage and it seems like perhaps highlighting gets weird on this particular code snippet. Doing small changes to the code can restore highlighting also, but it is not clear what the culprit is (I don't have any experience with the grammars...)
Running :TSUpdate all parsers are up to date
I tried to strip this code out of a larger file that produces the minimal reproducible example
Picture of code highlighting, can see that after "let startString" it stops highlighting
There is possibly another weird thing with the useRef at the top, the two useRefs are colored differently
Here is a bunch of detailed version info if it helps