Permalink
Browse files

fix import/export of nested named colors

  • Loading branch information...
1 parent 0da19d4 commit c205964d87e703a3dab87cba21fcec083feb1940 @siegfriedpammer siegfriedpammer committed Aug 4, 2012
@@ -638,7 +638,9 @@ bool FindSDColor(string sdKey, out IHighlightingItem item)
var highlighting = HighlightingManager.Instance.GetDefinition(language);
item = null;
if (def != null && highlighting != null) {
- var color = def.Elements.OfType<XshdColor>().FirstOrDefault(i => i.Name == sdKey);
+ var visitor = new ColorVisitor(allSyntaxDefinitions);
+ def.AcceptElements(visitor);
+ var color = visitor.foundColors.FirstOrDefault(i => i.Name == sdKey);
if (color != null) {
item = new NamedColorHighlightingItem(defaultText, color) { ParentDefinition = highlighting };
item = new CustomizedHighlightingItem(customizationList, item, language);
@@ -746,8 +748,10 @@ bool FindSDColor(string sdKey, out IHighlightingItem item)
{ "XML CData Section", "XML.CData" },
{ "XML Comment", "XML.Comment" },
{ "XML Delimiter", "" },
- { "XML Doc Comment", "" },
- { "XML Doc Tag", "" },
+ { "XML Doc Comment", "C#.DocComment" },
+ { "XML Doc Tag", "C#.KnownDocTags" },
+ { "XML Doc Comment", "VBNET.DocComment" },
+ { "XML Doc Tag", "VBNET.KnownDocTags" },
{ "XML Name", "" },
{ "XML Text", "" },
};

0 comments on commit c205964

Please sign in to comment.