break;
default :
if (token != TokenNameINLINE_HTML) {
- throwSyntaxError("Error in expression (found token '"
- + scanner.toStringAction(token) + "').");
+ if (token > TokenNameKEYWORD) {
+ getNextToken();
+ break;
+ } else {
+ throwSyntaxError("Error in expression (found token '"
+ + scanner.toStringAction(token) + "').");
+ }
}
return;
}
break;
case TokenNameCURLY_OPEN :
getNextToken();
- if (token == TokenNameIdentifier) {
+ if (token == TokenNameIdentifier||token>TokenNameKEYWORD) {
getNextToken();
if (token == TokenNameLBRACKET) {
getNextToken();