fredyvonvinet / ANTLR4-Plugins-for-NetBeans

NetBeans plugins for ANTLR 4 enabling to integrate ANTLR grammar files in standard NetBeans projects (ant-based or Maven-based).
9 stars 11 forks source link

Errors in CSharp lexer file #39

Open Chris2011 opened 7 years ago

Chris2011 commented 7 years ago

I created a ticket here: https://github.com/antlr/grammars-v4/issues/800

where I said, that I have one error in my grammar file, but as I commented, everything is fine in IntelliJ and Visual Studio Code. Now I don't know whether it is a general ANTLR problem with the lexer, that the lexer is wrong (I know the channel HIDDEN is missing) or is it a problem with your plugin?

Regards

Chris

Chris2011 commented 7 years ago

As of this comment: https://github.com/antlr/grammars-v4/issues/800#issuecomment-315853071

the HIDDEN keyword should be a builtin so I think it is a bug in your plugin(?).

Chris2011 commented 7 years ago

Still there after updating to 1.2.1.

Chris2011 commented 7 years ago

No, why? Did you fix it? Please read the Ticket carefully and the linked Ticket. Thx.

Chris2011 commented 7 years ago

As I said, no it can't be closed, because the error still exists ^^. The comment was from an other repo, which has not much todo with this repo. This repo here brings a plugin for ANTLR into NetBeans with syntax hightlighting and generating. The other repo is the official antlr repo where they collect all the antlr grammar files as a repo.

I started to create the issue twice, here and there, because this plugin uses antlrv4 to generate the parser and lexer. It still shows error for the HIDDEN keyword so I decided to create the ticket at the antlr repo, because I thought it is a problem there. But in the ticket you can see comments that the hidden keyword is existing in general in antlr, so it must be an error in this plugin here.

Chris2011 commented 7 years ago

There shouldn't be an error with HIDDEN.

Chris2011 commented 7 years ago

The other ticket can be closed, because it seems not to be an error with the compiler of antlr.

Chris2011 commented 7 years ago

Here I wrote:

As of this comment: antlr/grammars-v4#800 (comment)

the HIDDEN keyword should be a builtin so I think it is a bug in your plugin(?).