[320861] JSP EL can not be parsed correctly during editing in JSP editor
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/parser/JSPReParser.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/parser/JSPReParser.java
index fcb0642..98cae51 100644
--- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/parser/JSPReParser.java
+++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/parser/JSPReParser.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2005 IBM Corporation and others.
+ * Copyright (c) 2004, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -44,9 +44,19 @@
// None of the superclass' cases were valid, so check for JSP cases
if (result == null) {
result = checkForJSP();
+ if (result == null)
+ result = checkForJSPEL();
}
return result;
}
+
+ private StructuredDocumentEvent checkForJSPEL() {
+ StructuredDocumentEvent result = null;
+ result = checkForCriticalKey("${"); //$NON-NLS-1$
+ if (result == null)
+ result = checkForCriticalKey("}"); //$NON-NLS-1$
+ return result;
+ }
/**
* A change to a JSP tag can result in all being reparsed.