grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

TypeScript version is too low

Open fgnosv opened this issue 1 year ago • 3 comments

The TypeScript lexer and parser versions are too low, so parsing is not possible when running open source. Please update typescript to the latest version.

fgnosv avatar Sep 18 '23 08:09 fgnosv

Presumably you mean some newer (or merely current) Typescript syntax is not parsed properly? If so, I agree.

I'm not sure who is maintaining the Typescript grammar anymore. I contacted the two original authors of the grammar a while ago and they said they were no longer working on it.

abulka avatar Nov 26 '23 23:11 abulka

I've created a PR https://github.com/antlr/grammars-v4/pull/3973 that upgrades the JavaScript part of TypeScript from the existing JavaScript grammar file, and adds a couple of Typescript improvements.

aleppard avatar Feb 20 '24 00:02 aleppard

I've created a new PR https://github.com/antlr/grammars-v4/pull/3978 that upgrades it to v2.7. This is still far off the latest version of v5.3 or so; but it should be much more compatible with existing code.

aleppard avatar Feb 23 '24 05:02 aleppard