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:
authornsandonato2010-04-12 17:49:42 +0000
committernsandonato2010-04-12 17:49:42 +0000
commit506def80e0f44b36d300af01ddc2264ddfe8013c (patch)
treeb5448ae14559fc663f31a4bd26456dc098c3b811 /bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal
parent88e46a07b0330b04f2b143474be3f0e05c8ba28c (diff)
downloadwebtools.sourceediting-506def80e0f44b36d300af01ddc2264ddfe8013c.tar.gz
webtools.sourceediting-506def80e0f44b36d300af01ddc2264ddfe8013c.tar.xz
webtools.sourceediting-506def80e0f44b36d300af01ddc2264ddfe8013c.zip
[288679] [parser]%} is not correctly color coded and is invisible in a black background theme
Diffstat (limited to 'bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal')
-rw-r--r--bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/style/LineStyleProviderForXML.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/style/LineStyleProviderForXML.java b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/style/LineStyleProviderForXML.java
index 938c793a27..1241201df8 100644
--- a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/style/LineStyleProviderForXML.java
+++ b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/style/LineStyleProviderForXML.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2001, 2008 IBM Corporation and others.
+ * Copyright (c) 2001, 2010 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
@@ -38,7 +38,7 @@ public class LineStyleProviderForXML extends AbstractLineStyleProvider implement
}
String type = region.getType();
- if ((type == DOMRegionContext.XML_CONTENT) || (type == DOMRegionContext.XML_DOCTYPE_INTERNAL_SUBSET)) {
+ if ((type == DOMRegionContext.XML_CONTENT) || (type == DOMRegionContext.XML_DOCTYPE_INTERNAL_SUBSET) || (type == DOMRegionContext.UNDEFINED)) {
return (TextAttribute) getTextAttributes().get(IStyleConstantsXML.XML_CONTENT);
}
if ((type == DOMRegionContext.XML_TAG_OPEN) || (type == DOMRegionContext.XML_END_TAG_OPEN) || (type == DOMRegionContext.XML_TAG_CLOSE) || (type == DOMRegionContext.XML_EMPTY_TAG_CLOSE)) {
@@ -95,9 +95,6 @@ public class LineStyleProviderForXML extends AbstractLineStyleProvider implement
if ((type == DOMRegionContext.XML_DOCTYPE_EXTERNAL_ID_PUBLIC) || (type == DOMRegionContext.XML_DOCTYPE_EXTERNAL_ID_SYSTEM)) {
return (TextAttribute) getTextAttributes().get(IStyleConstantsXML.DOCTYPE_EXTERNAL_ID);
}
- if (type == DOMRegionContext.UNDEFINED) {
- return (TextAttribute) getTextAttributes().get(IStyleConstantsXML.CDATA_TEXT);
- }
if (type == DOMRegionContext.WHITE_SPACE) {
/*
* White space is normally not on its own ... but when it is,

Back to the top