Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornitind2008-08-09 19:03:32 +0000
committernitind2008-08-09 19:03:32 +0000
commit91558442f0fd923c88a44c481f14db9f9641ff17 (patch)
tree671da608dcb29a27f8dc5c3e814c24bd904a40fc /bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/css/core
parent8607d74f35c8ad907e72d709285da2719da2a785 (diff)
downloadwebtools.sourceediting-91558442f0fd923c88a44c481f14db9f9641ff17.tar.gz
webtools.sourceediting-91558442f0fd923c88a44c481f14db9f9641ff17.tar.xz
webtools.sourceediting-91558442f0fd923c88a44c481f14db9f9641ff17.zip
[236008] JSPedCSSSourceParser problem
Diffstat (limited to 'bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/css/core')
-rw-r--r--bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/css/core/internal/parser/JSPedCSSTokenizer.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/css/core/internal/parser/JSPedCSSTokenizer.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/css/core/internal/parser/JSPedCSSTokenizer.java
index cdb75fd49e..ddb22e72d0 100644
--- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/css/core/internal/parser/JSPedCSSTokenizer.java
+++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/css/core/internal/parser/JSPedCSSTokenizer.java
@@ -1,7 +1,7 @@
-/* The following code was generated by JFlex 1.4.1 on 06/04/30 15:49 */
+/* The following code was generated by JFlex 1.4.1 on 7/22/08 10:30 AM */
/*******************************************************************************
- * Copyright (c) 2006 IBM Corporation and others.
+ * Copyright (c) 2006, 2008 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
@@ -28,7 +28,8 @@ import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
/**
* This class is a scanner generated by
* <a href="http://www.jflex.de/">JFlex</a> 1.4.1
- * on 06/04/30 15:49 from the specification file
+ * on 7/22/08 10:30 AM from the specification file
+ * <tt>D:/workspaces/wtp301/workspace/org.eclipse.jst.jsp.core/DevTimeSupport/CSSJSPParser/JSPedCSSTokenizer.flex</tt>
*/
public class JSPedCSSTokenizer implements JSPedCSSRegionContexts, ICSSTokenizer {
@@ -1290,7 +1291,9 @@ public class JSPedCSSTokenizer implements JSPedCSSRegionContexts, ICSSTokenizer
break;
}
}
- if (context == CSS_JSP_SCRIPTLET){
+ // [236008] - Should not try and consider the token a
+ // comment unless a comment was started
+ if (context == CSS_JSP_SCRIPTLET && nextTokenType == CSS_JSP_COMMENT){
while (nextTokenType != CSS_JSP_COMMENT_END) {
// text.append(yytext());
textLength += yylength();

Back to the top