Typescript broken syntax highlighting

Hello Github community,
I’d like to report/highlight an issue, I hope this is the correct place.
I’m developing a new version of a library of mine, which uses Typescript v4.1+ features.

It seems like Github file viewer syntax highlighting does not support Typescript type literal templates: https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html

I’ve searched for a similar issue but didn’t find any (only for other languages).

Here’s the full hightlight-broken code (permalink): https://github.com/alexandercerutti/passkit-generator/blob/fb0fac0cab8ef30c6e43783553937b059070353a/src/PKPass.ts

Is anyone else suffering from this? Thank you.

1 Like

I’m having the same problem. I discovered a discussion post about this on the linguist repository, which identified this as a bug with the tree-sitter-typescript repository.

That bug was apparently fixed on September 15th and included in v0.2.0 on September 17th. But this problem remains so presumably GitHub isn’t using that version yet.