[282218] Could not open the editor: Argument not valid
diff --git a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java
index 49272c6..dde1a3b 100644
--- a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java
+++ b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java
@@ -71,6 +71,8 @@
 					/* The token may not span the total length of the region */
 					if (end < regionEnd)
 						styleLength = end - regionStart;
+					else /* Bugzilla 282218 */ 
+						styleLength = regionEnd - regionStart;
 					addStyleRange(holdResults, getAttributeFor(token.kind), regionStart, styleLength);
 				}
 				start += token.length;