diff --git a/src/main/java/com/cflint/CFLint.java b/src/main/java/com/cflint/CFLint.java index cec4ec5a2..fa6863fbf 100644 --- a/src/main/java/com/cflint/CFLint.java +++ b/src/main/java/com/cflint/CFLint.java @@ -403,7 +403,7 @@ private void process(final Element elem, final String space, final Context conte final String cfscript = m.group(1).trim(); if(!cfscript.isEmpty()){ try { - final CFExpression expression = cfmlParser.parseCFExpression(cfscript, this); + final CFExpression expression = cfmlParser.parseCFMLExpression(cfscript, this); if (expression != null) { process(expression, elem, context); } @@ -569,7 +569,7 @@ private List unpackTagExpressions(final Element elem) { List errors = new ArrayList(); ANTLRErrorListener errorReporter = new ArrayErrorListener(errors ); - final CFExpression exp = cfmlParser.parseCFExpression(literalChar.get(0) + attr.getValue() + literalChar.get(0), errorReporter); + final CFExpression exp = cfmlParser.parseCFMLExpression(literalChar.get(0) + attr.getValue() + literalChar.get(0), errorReporter); if(errors.size()==0){ expressions.add(exp); continue; @@ -578,7 +578,7 @@ private List unpackTagExpressions(final Element elem) { } // Try other quotes before reporting a failure try { - final CFExpression exp = cfmlParser.parseCFExpression(literalChar.get(1) + attr.getValue() + literalChar.get(1), this); + final CFExpression exp = cfmlParser.parseCFMLExpression(literalChar.get(1) + attr.getValue() + literalChar.get(1), this); expressions.add(exp); } catch (Exception e2) { System.err.println("Error in parsing : " + attr.getValue() + " on tag " + elem.getName());