mirror of https://github.com/icsharpcode/ILSpy.git
4 changed files with 129 additions and 0 deletions
@ -0,0 +1,63 @@
@@ -0,0 +1,63 @@
|
||||
<SyntaxDefinition name="XML" extensions=".xml;.xsl;.xslt;.xsd;.manifest;.config;.addin;.xshd;.wxs;.wxi;.wxl;.proj;.csproj;.vbproj;.ilproj;.booproj;.build;.xfrm;.targets;.xaml;.xpt;.xft;.map;.wsdl;.disco;.ps1xml;.nuspec" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> |
||||
<Color foreground="Green" name="Comment" exampleText="<!-- comment -->" /> |
||||
<Color foreground="#FFD69D85" name="CData" exampleText="<![CDATA[data]]>" /> |
||||
<Color foreground="#FFD69D85" name="DocType" exampleText="<!DOCTYPE rootElement>" /> |
||||
<Color foreground="#FFD69D85" name="XmlDeclaration" exampleText='<?xml version="1.0"?>' /> |
||||
<Color foreground="#FFD69D85" name="XmlTag" exampleText='<tag attribute="value" />' /> |
||||
<Color foreground="#FF00A0FF" name="AttributeName" exampleText='<tag attribute="value" />' /> |
||||
<Color foreground="#FFD69D85" name="AttributeValue" exampleText='<tag attribute="value" />' /> |
||||
<Color foreground="#FFd8a0df" name="Entity" exampleText="index.aspx?a=1&amp;b=2" /> |
||||
<Color foreground="#FF559CD6" name="BrokenEntity" exampleText="index.aspx?a=1&b=2" /> |
||||
|
||||
<RuleSet> |
||||
<Span color="Comment" multiline="true"> |
||||
<Begin><!--</Begin> |
||||
<End>--></End> |
||||
</Span> |
||||
<Span color="CData" multiline="true"> |
||||
<Begin><!\[CDATA\[</Begin> |
||||
<End>]]></End> |
||||
</Span> |
||||
<Span color="DocType" multiline="true"> |
||||
<Begin><!DOCTYPE</Begin> |
||||
<End>></End> |
||||
</Span> |
||||
<Span color="XmlDeclaration" multiline="true"> |
||||
<Begin><\?</Begin> |
||||
<End>\?></End> |
||||
</Span> |
||||
<Span color="XmlTag" multiline="true"> |
||||
<Begin><</Begin> |
||||
<End>></End> |
||||
<RuleSet> |
||||
<!-- Treat the position before '<' as end, as that's not a valid character |
||||
in attribute names and indicates the user forgot a closing quote. --> |
||||
<Span color="AttributeValue" multiline="true" ruleSet="EntitySet"> |
||||
<Begin>"</Begin> |
||||
<End>"|(?=<)</End> |
||||
</Span> |
||||
<Span color="AttributeValue" multiline="true" ruleSet="EntitySet"> |
||||
<Begin>'</Begin> |
||||
<End>'|(?=<)</End> |
||||
</Span> |
||||
<Rule color="AttributeName">[\d\w_\-\.]+(?=(\s*=))</Rule> |
||||
<Rule color="AttributeValue">=</Rule> |
||||
</RuleSet> |
||||
</Span> |
||||
<Import ruleSet="EntitySet"/> |
||||
</RuleSet> |
||||
|
||||
<RuleSet name="EntitySet"> |
||||
<Rule color="Entity"> |
||||
& |
||||
[\w\d\#]+ |
||||
; |
||||
</Rule> |
||||
|
||||
<Rule color="BrokenEntity"> |
||||
& |
||||
[\w\d\#]* |
||||
#missing ; |
||||
</Rule> |
||||
</RuleSet> |
||||
</SyntaxDefinition> |
@ -0,0 +1,63 @@
@@ -0,0 +1,63 @@
|
||||
<SyntaxDefinition name="XML" extensions=".xml;.xsl;.xslt;.xsd;.manifest;.config;.addin;.xshd;.wxs;.wxi;.wxl;.proj;.csproj;.vbproj;.ilproj;.booproj;.build;.xfrm;.targets;.xaml;.xpt;.xft;.map;.wsdl;.disco;.ps1xml;.nuspec" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> |
||||
<Color foreground="Green" name="Comment" exampleText="<!-- comment -->" /> |
||||
<Color foreground="Blue" name="CData" exampleText="<![CDATA[data]]>" /> |
||||
<Color foreground="Blue" name="DocType" exampleText="<!DOCTYPE rootElement>" /> |
||||
<Color foreground="Blue" name="XmlDeclaration" exampleText='<?xml version="1.0"?>' /> |
||||
<Color foreground="DarkMagenta" name="XmlTag" exampleText='<tag attribute="value" />' /> |
||||
<Color foreground="Red" name="AttributeName" exampleText='<tag attribute="value" />' /> |
||||
<Color foreground="Blue" name="AttributeValue" exampleText='<tag attribute="value" />' /> |
||||
<Color foreground="Teal" name="Entity" exampleText="index.aspx?a=1&amp;b=2" /> |
||||
<Color foreground="Olive" name="BrokenEntity" exampleText="index.aspx?a=1&b=2" /> |
||||
|
||||
<RuleSet> |
||||
<Span color="Comment" multiline="true"> |
||||
<Begin><!--</Begin> |
||||
<End>--></End> |
||||
</Span> |
||||
<Span color="CData" multiline="true"> |
||||
<Begin><!\[CDATA\[</Begin> |
||||
<End>]]></End> |
||||
</Span> |
||||
<Span color="DocType" multiline="true"> |
||||
<Begin><!DOCTYPE</Begin> |
||||
<End>></End> |
||||
</Span> |
||||
<Span color="XmlDeclaration" multiline="true"> |
||||
<Begin><\?</Begin> |
||||
<End>\?></End> |
||||
</Span> |
||||
<Span color="XmlTag" multiline="true"> |
||||
<Begin><</Begin> |
||||
<End>></End> |
||||
<RuleSet> |
||||
<!-- Treat the position before '<' as end, as that's not a valid character |
||||
in attribute names and indicates the user forgot a closing quote. --> |
||||
<Span color="AttributeValue" multiline="true" ruleSet="EntitySet"> |
||||
<Begin>"</Begin> |
||||
<End>"|(?=<)</End> |
||||
</Span> |
||||
<Span color="AttributeValue" multiline="true" ruleSet="EntitySet"> |
||||
<Begin>'</Begin> |
||||
<End>'|(?=<)</End> |
||||
</Span> |
||||
<Rule color="AttributeName">[\d\w_\-\.]+(?=(\s*=))</Rule> |
||||
<Rule color="AttributeValue">=</Rule> |
||||
</RuleSet> |
||||
</Span> |
||||
<Import ruleSet="EntitySet"/> |
||||
</RuleSet> |
||||
|
||||
<RuleSet name="EntitySet"> |
||||
<Rule color="Entity"> |
||||
& |
||||
[\w\d\#]+ |
||||
; |
||||
</Rule> |
||||
|
||||
<Rule color="BrokenEntity"> |
||||
& |
||||
[\w\d\#]* |
||||
#missing ; |
||||
</Rule> |
||||
</RuleSet> |
||||
</SyntaxDefinition> |
Loading…
Reference in new issue