v4: add error for isolated rule refs
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9355]
This commit is contained in:
parent
08d47088b4
commit
89b1d52c77
|
@ -150,8 +150,8 @@ public class AttributeChecks implements ActionSplitterListener {
|
|||
return; // $ids for ids+=ID etc...
|
||||
}
|
||||
if ( isolatedRuleRef(x.getText())!=null ) {
|
||||
// errMgr.grammarError(ErrorType.ISOLATED_RULE_REF,
|
||||
// g.fileName, x, x.getText(), expr);
|
||||
errMgr.grammarError(ErrorType.ISOLATED_RULE_REF,
|
||||
g.fileName, x, x.getText(), expr);
|
||||
return;
|
||||
}
|
||||
errMgr.grammarError(ErrorType.UNKNOWN_SIMPLE_ATTRIBUTE,
|
||||
|
|
Loading…
Reference in New Issue