-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Root rules should not be highlighted as "unused parse rule" #243
Comments
I don't think it's even possible to decide whether a rule is used or unused. So may be there should be some special highlighting for "top-level rules". That could be enough of a hint for grammar developers without being false positive about use. |
Any rule can be start symbol so no way to turn off grey squiggly. it's more useful to have than not so i'll close. thanks though! |
maybe add a comment like // toplevel that would turn the spurious warning? |
https://eslint.org/docs/2.13.1/user-guide/configuring#disabling-rules-with-inline-comments This is how eslint handles it. |
@MrCoder "Page not found". Could you please update the link and add its content to the comment? |
https://eslint.org/docs/latest/use/configure/rules#disabling-rules
|
In Java it's possible to use |
Also discussion is here: antlr/antlr4#1069
The text was updated successfully, but these errors were encountered: