if (!data.cfml.isCurrent('#'))
throw new TemplateException(data.cfml,"Invalid Syntax Closing [#] not found");
ExprString exprStr=null;
if(str.length()!=0) {
exprStr=new LitString(str.toString(),line,data.cfml.getPosition());
if(expr!=null){
expr = OpString.toExprString(expr, exprStr);
}
else expr=exprStr;
str=new StringBuffer();
}
if(expr==null) {
expr=inner;
}
else {
expr = OpString.toExprString(expr, inner);
}
}
}
// check quoter
else if(data.cfml.isCurrent(quoter)) {
// Ecaped sharp
if(data.cfml.isNext(quoter)){
data.cfml.next();
str.append(quoter);
}
// finsish
else {
break;
}
}
// all other character
else {
str.append(data.cfml.getCurrent());
}
}
if(!data.cfml.forwardIfCurrent(quoter))
throw new TemplateException(data.cfml,"Invalid Syntax Closing ["+quoter+"] not found");
if(expr==null)
expr=new LitString(str.toString(),line,data.cfml.getPosition());
else if(str.length()!=0) {
expr = OpString.toExprString(expr, new LitString(str.toString(),line,data.cfml.getPosition()));
}
comments(data);
if(expr instanceof Variable) {
Variable var=(Variable) expr;