Author: scabanovich
Date: 2011-04-15 16:42:03 -0400 (Fri, 15 Apr 2011)
New Revision: 30609
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java
Log:
JBIDE-8728
https://issues.jboss.org/browse/JBIDE-8728
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java 2011-04-15
20:39:54 UTC (rev 30608)
+++
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java 2011-04-15
20:42:03 UTC (rev 30609)
@@ -183,7 +183,7 @@
LexicalToken t = lookUpNextToken(current);
if(t != null && t.getType() == OperationTokenDescription.OPERATION &&
t.getText().equals(":")) { //$NON-NLS-1$
LexicalToken t1 = lookUpNextToken(t);
- if(t1 == null || t1.getType() == EndELTokenDescription.END_EL || t1.getType() ==
ParamEndTokenDescription.PARAM_END || t1.getType() == ArgEndTokenDescription.ARG_END ||
t1.getType() == ExprEndTokenDescription.EXPR_END) {
+ if(t1 == null || t1.getType() == EndELTokenDescription.END_EL || t1.getType() ==
ParamEndTokenDescription.PARAM_END || t1.getType() == ArgEndTokenDescription.ARG_END ||
t1.getType() == ExprEndTokenDescription.EXPR_END || t1.getType() ==
OperationTokenDescription.OPERATION) {
t.setType(DotTokenDescription.DOT); //in incomplete expressions prefer function
call to operation sign
} else if(t1 != null && t1.getType() == JavaNameTokenDescription.JAVA_NAME)
{
LexicalToken t2 = lookUpNextToken(t1);