Browse Source
Fixed bug in XSHD loader when XSHD <Import> refers to a ruleset defined later in the same file. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5398 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
3 changed files with 71 additions and 28 deletions
@ -1,41 +1,61 @@
@@ -1,41 +1,61 @@
|
||||
<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" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> |
||||
<Color foreground="Green" name="Comment" /> |
||||
<Color foreground="Blue" name="CData" /> |
||||
<Color foreground="Blue" name="DocType" /> |
||||
<Color foreground="Blue" name="XmlDecl" /> |
||||
<Color foreground="DarkMagenta" name="XmlTag" /> |
||||
<Color foreground="Red" name="AttributeName" /> |
||||
<Color foreground="Blue" name="AttributeValue" /> |
||||
<Color foreground="DarkRed" name="Entity" /> |
||||
<Color foreground="Olive" name="BrokenEntity" /> |
||||
|
||||
<RuleSet> |
||||
<Span foreground="Green" multiline="true"> |
||||
<Span color="Comment" multiline="true"> |
||||
<Begin><!--</Begin> |
||||
<End>--></End> |
||||
</Span> |
||||
<Span foreground="Blue" multiline="true"> |
||||
<Span color="CData" multiline="true"> |
||||
<Begin><!\[CDATA\[</Begin> |
||||
<End>]]></End> |
||||
</Span> |
||||
<Span foreground="Blue" multiline="true"> |
||||
<Span color="DocType" multiline="true"> |
||||
<Begin><!DOCTYPE</Begin> |
||||
<End>></End> |
||||
</Span> |
||||
<Span foreground="Blue" multiline="true"> |
||||
<Span color="XmlDecl" multiline="true"> |
||||
<Begin><\?</Begin> |
||||
<End>\?></End> |
||||
</Span> |
||||
<Span foreground="DarkMagenta" multiline="true"> |
||||
<Span color="XmlTag" multiline="true"> |
||||
<Begin><</Begin> |
||||
<End>></End> |
||||
<RuleSet> |
||||
<Span foreground="Blue" multiline="true"> |
||||
<Span color="AttributeValue" multiline="true" ruleSet="EntitySet"> |
||||
<Begin>"</Begin> |
||||
<End>"</End> |
||||
</Span> |
||||
<Span foreground="Blue" multiline="true"> |
||||
<Span color="AttributeValue" multiline="true" ruleSet="EntitySet"> |
||||
<Begin>'</Begin> |
||||
<End>'</End> |
||||
</Span> |
||||
<Rule foreground="Red">[\d\w_\-\.]+(?=(\s*=))</Rule> |
||||
<Rule foreground="Blue">=</Rule> |
||||
<Rule foreground="DarkMagenta">/</Rule> |
||||
<Rule color="AttributeName">[\d\w_\-\.]+(?=(\s*=))</Rule> |
||||
<Rule color="AttributeValue">=</Rule> |
||||
</RuleSet> |
||||
</Span> |
||||
<Span foreground="Blue"> |
||||
<Begin>&</Begin> |
||||
<End>;</End> |
||||
</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