v4: add error for isolated rule refs

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9355]
This commit is contained in:
sharwell 2011-11-17 18:25:13 -08:00
parent 08d47088b4
commit 89b1d52c77
1 changed files with 2 additions and 2 deletions

View File

@ -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,