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 @@ |
|||||||
<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"> |
<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> |
<RuleSet> |
||||||
<Span foreground="Green" multiline="true"> |
<Span color="Comment" multiline="true"> |
||||||
<Begin><!--</Begin> |
<Begin><!--</Begin> |
||||||
<End>--></End> |
<End>--></End> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="Blue" multiline="true"> |
<Span color="CData" multiline="true"> |
||||||
<Begin><!\[CDATA\[</Begin> |
<Begin><!\[CDATA\[</Begin> |
||||||
<End>]]></End> |
<End>]]></End> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="Blue" multiline="true"> |
<Span color="DocType" multiline="true"> |
||||||
<Begin><!DOCTYPE</Begin> |
<Begin><!DOCTYPE</Begin> |
||||||
<End>></End> |
<End>></End> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="Blue" multiline="true"> |
<Span color="XmlDecl" multiline="true"> |
||||||
<Begin><\?</Begin> |
<Begin><\?</Begin> |
||||||
<End>\?></End> |
<End>\?></End> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="DarkMagenta" multiline="true"> |
<Span color="XmlTag" multiline="true"> |
||||||
<Begin><</Begin> |
<Begin><</Begin> |
||||||
<End>></End> |
<End>></End> |
||||||
<RuleSet> |
<RuleSet> |
||||||
<Span foreground="Blue" multiline="true"> |
<Span color="AttributeValue" multiline="true" ruleSet="EntitySet"> |
||||||
<Begin>"</Begin> |
<Begin>"</Begin> |
||||||
<End>"</End> |
<End>"</End> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="Blue" multiline="true"> |
<Span color="AttributeValue" multiline="true" ruleSet="EntitySet"> |
||||||
<Begin>'</Begin> |
<Begin>'</Begin> |
||||||
<End>'</End> |
<End>'</End> |
||||||
</Span> |
</Span> |
||||||
<Rule foreground="Red">[\d\w_\-\.]+(?=(\s*=))</Rule> |
<Rule color="AttributeName">[\d\w_\-\.]+(?=(\s*=))</Rule> |
||||||
<Rule foreground="Blue">=</Rule> |
<Rule color="AttributeValue">=</Rule> |
||||||
<Rule foreground="DarkMagenta">/</Rule> |
|
||||||
</RuleSet> |
</RuleSet> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="Blue"> |
<Import ruleSet="EntitySet"/> |
||||||
<Begin>&</Begin> |
</RuleSet> |
||||||
<End>;</End> |
|
||||||
</Span> |
<RuleSet name="EntitySet"> |
||||||
|
<Rule color="Entity"> |
||||||
|
& |
||||||
|
[\w\d\#]+ |
||||||
|
; |
||||||
|
</Rule> |
||||||
|
|
||||||
|
<Rule color="BrokenEntity"> |
||||||
|
& |
||||||
|
[\w\d\#]* |
||||||
|
#missing ; |
||||||
|
</Rule> |
||||||
</RuleSet> |
</RuleSet> |
||||||
</SyntaxDefinition> |
</SyntaxDefinition> |
Loading…
Reference in new issue