Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
[TextEditor] Fixed tag color bug in xml syntax mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger committed Feb 20, 2013
1 parent 4635e0f commit 0385ee5
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions main/src/core/Mono.Texteditor/SyntaxModes/XmlSyntaxMode.xml
Expand Up @@ -40,31 +40,25 @@
<End>;</End>
</Span>

<Span tagColor = "Xml Delimiter" color = "Xml Text" rule = "InDocType">
<Begin>&lt;!</Begin>
<End>&gt;</End>
</Span>

<Span tagColor = "Xml Delimiter" color = "Xml CData Section" rule = "Comment">
<Begin>&lt;![CDATA[</Begin>
<End>]]&gt;</End>
</Span>

<Span tagColor = "Xml Delimiter" color = "Xml Text" rule = "InDocType">
<Begin>&lt;!</Begin>
<End>&gt;</End>
</Span>

<!-- processing instructions -->
<Span tagColor = "Keyword(Declaration)" color = "Xml Delimiter" rule = "InTag">
<Begin>&lt;?</Begin>
<End>?&gt;</End>
</Span>

<Span tagColor = "Xml Delimiter" color = "Xml Name" rule = "InTag">
<Begin>&lt;/</Begin>
<End>&gt;</End>
</Span>

<Span tagColor = "Xml Delimiter" color = "Xml Name" rule = "InTag">
<Begin>&lt;</Begin>
<Exit>&gt;</Exit>
<End>/&gt;</End>
<End>&gt;</End>
</Span>

<Rule name = "Comment">
Expand Down Expand Up @@ -102,6 +96,10 @@
<End>&apos;</End>
</Span>

<Keywords color = "Xml Delimiter">
<Word>/</Word>
</Keywords>

<!-- attributes -->
<Match expression="([A-Za-z0-9_]+[:[A-Za-z0-9_]+]?)([\s\n\r]*=)">
<Group color = "Xml Attribute"/>
Expand Down

0 comments on commit 0385ee5

Please sign in to comment.