You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/09/20 06:35:14 UTC
[GitHub] [netbeans] lkishalmi opened a new pull request, #4662: Fix possible NPE while editing ANTLR Grammar
lkishalmi opened a new pull request, #4662:
URL: https://github.com/apache/netbeans/pull/4662
Yes, it seems some things are still lurking. Let's start to patch them.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] matthiasblaesing commented on a diff in pull request #4662: Fix possible NPE while editing ANTLR Grammar
Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on code in PR #4662:
URL: https://github.com/apache/netbeans/pull/4662#discussion_r975545843
##########
java/languages.antlr/src/org/netbeans/modules/languages/antlr/v4/Antlr4ParserResult.java:
##########
@@ -211,7 +211,7 @@ protected ParseTreeListener createStructureListener() {
@Override
public void exitLexerRuleSpec(ANTLRv4Parser.LexerRuleSpecContext ctx) {
- if (ctx.FRAGMENT() == null) {
+ if ((ctx.FRAGMENT() == null) && (ctx.TOKEN_REF() != null)) {
Review Comment:
This reminds me of a question I had: I understand, that fragments don't end up in the parse tree, but from a user perspective, I'm very interested in them (they are after all primitives I can use to structure my grammar), so it would be good to show fragments in the structure tree.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] lkishalmi commented on a diff in pull request #4662: Fix possible NPE while editing ANTLR Grammar
Posted by GitBox <gi...@apache.org>.
lkishalmi commented on code in PR #4662:
URL: https://github.com/apache/netbeans/pull/4662#discussion_r975585717
##########
java/languages.antlr/src/org/netbeans/modules/languages/antlr/v4/Antlr4ParserResult.java:
##########
@@ -211,7 +211,7 @@ protected ParseTreeListener createStructureListener() {
@Override
public void exitLexerRuleSpec(ANTLRv4Parser.LexerRuleSpecContext ctx) {
- if (ctx.FRAGMENT() == null) {
+ if ((ctx.FRAGMENT() == null) && (ctx.TOKEN_REF() != null)) {
Review Comment:
True.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] lkishalmi merged pull request #4662: Fix possible NPE while editing ANTLR Grammar
Posted by GitBox <gi...@apache.org>.
lkishalmi merged PR #4662:
URL: https://github.com/apache/netbeans/pull/4662
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists