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...
|
return; // $ids for ids+=ID etc...
|
||||||
}
|
}
|
||||||
if ( isolatedRuleRef(x.getText())!=null ) {
|
if ( isolatedRuleRef(x.getText())!=null ) {
|
||||||
// errMgr.grammarError(ErrorType.ISOLATED_RULE_REF,
|
errMgr.grammarError(ErrorType.ISOLATED_RULE_REF,
|
||||||
// g.fileName, x, x.getText(), expr);
|
g.fileName, x, x.getText(), expr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
errMgr.grammarError(ErrorType.UNKNOWN_SIMPLE_ATTRIBUTE,
|
errMgr.grammarError(ErrorType.UNKNOWN_SIMPLE_ATTRIBUTE,
|
||||||
|
|
Loading…
Reference in New Issue