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:
authornsandonato2011-03-22 21:01:01 +0000
committernsandonato2011-03-22 21:01:01 +0000
commit8fec63ce556a12745f533b9dae7c9e51264a1a37 (patch)
treee051bae583e524f43786132ad65b41e99019bfb7 /bundles/org.eclipse.wst.html.core
parent913e40edd34258297fedf6093161ff6baa9ca789 (diff)
downloadwebtools.sourceediting-8fec63ce556a12745f533b9dae7c9e51264a1a37.tar.gz
webtools.sourceediting-8fec63ce556a12745f533b9dae7c9e51264a1a37.tar.xz
webtools.sourceediting-8fec63ce556a12745f533b9dae7c9e51264a1a37.zip
[215668] [document] Code assist within Style element does not work
Diffstat (limited to 'bundles/org.eclipse.wst.html.core')
-rw-r--r--bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/text/StructuredTextPartitionerForHTML.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/text/StructuredTextPartitionerForHTML.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/text/StructuredTextPartitionerForHTML.java
index e1b3e3897d..08c61ee3eb 100644
--- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/text/StructuredTextPartitionerForHTML.java
+++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/text/StructuredTextPartitionerForHTML.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2010 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
@@ -302,4 +302,17 @@ public class StructuredTextPartitionerForHTML extends StructuredTextPartitionerF
}
return foundAttributeName;
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.wst.sse.core.internal.text.rules.StructuredTextPartitioner#getParserSpecificPreviousRegion(org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion)
+ */
+ protected IStructuredDocumentRegion getParserSpecificPreviousRegion(IStructuredDocumentRegion currentRegion) {
+ if (currentRegion == null)
+ return null;
+ do {
+ currentRegion = currentRegion.getPrevious();
+ } while (currentRegion != null && currentRegion.getType().equals(DOMRegionContext.BLOCK_TEXT));
+
+ return currentRegion;
+ }
}

Back to the top