mike-lischke / vscode-antlr4

ANTLR4 language support for Visual Studio Code
http://www.soft-gems.net
MIT License
436 stars 61 forks source link

syntax: cannot parsed v4-grammers/sql/tsql correctly #215

Closed h3n4l closed 1 year ago

h3n4l commented 1 year ago

I download the tsql g4 parser files from v4-grammers/sql/tsql, but extension seems cannot parse it correctly:

CleanShot 2023-07-21 at 10 56 01@2x
mike-lischke commented 1 year ago

Are you sure these diagnostics are produced from the ANTLR4 extension? What language is set for that file (check the status bar)?

h3n4l commented 1 year ago

Hi @mike-lischke , Sorry for the late : \ The language is ANTLR exactly: image

mike-lischke commented 1 year ago

OK, the problem stems from the fact that the TSQL grammar uses the new syntax already (ANTLR 4.12/13) with case insensitive identifiers. This ANTLR version is not yet supported by this extension, because I have no Typescript runtime for that. I'm working on one but it takes time. Once this is available I can improve the extension.

mike-lischke commented 1 year ago

A new release (2.4.0) was just published, which now works with the latest ANTLR4 version.