From 89b1d52c771f64540676ab923c242904b47fbc39 Mon Sep 17 00:00:00 2001 From: sharwell Date: Thu, 17 Nov 2011 18:25:13 -0800 Subject: [PATCH] v4: add error for isolated rule refs [git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9355] --- tool/src/org/antlr/v4/semantics/AttributeChecks.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/src/org/antlr/v4/semantics/AttributeChecks.java b/tool/src/org/antlr/v4/semantics/AttributeChecks.java index d300a3ccf..cc2deb751 100644 --- a/tool/src/org/antlr/v4/semantics/AttributeChecks.java +++ b/tool/src/org/antlr/v4/semantics/AttributeChecks.java @@ -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,