Browse Source

Converted Boo.xshd to new XSHD file format.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5399 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 16 years ago
parent
commit
fb53cbeeff
  1. 490
      src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/Resources/Boo.xshd
  2. 2
      src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/Resources/XML-Mode.xshd

490
src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/Resources/Boo.xshd

@ -1,314 +1,210 @@
<?xml version="1.0"?> <SyntaxDefinition name="Boo" extensions=".boo" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
<Color name="Comment" foreground="Green" />
<SyntaxDefinition name="Boo" extensions=".boo"> <Color name="String" foreground="Blue" />
<RuleSet>
<Environment> <Span color="Comment" multiline="true">
<Default bold="false" italic="false" color="SystemColors.WindowText" bgcolor="SystemColors.Window" /> <Begin>"""</Begin>
<Selection bold="false" italic="false" color="SystemColors.HighlightText" bgcolor="SystemColors.Highlight" /> <End>"""</End>
<VRuler bold="false" italic="false" color="SystemColors.ControlLight" />
<InvalidLines bold="false" italic="false" color="Red" />
<CaretMarker bold="false" italic="false" color="Yellow" />
<LineNumbers bold="false" italic="false" color="SystemColors.ControlDark" bgcolor="SystemColors.Window" />
<FoldLine bold="false" italic="false" color="Gray" bgcolor="Black" />
<FoldMarker bold="false" italic="false" color="Gray" bgcolor="White" />
<EOLMarkers bold="false" italic="false" color="#E0E0E5" />
<SpaceMarkers bold="false" italic="false" color="#E0E0E5" />
<TabMarkers bold="false" italic="false" color="#E0E0E5" />
<Custom name="LocalVariableCreation" bold="false" italic="false" color="#04ABAB" />
</Environment>
<Properties>
<Property name="LineComment" value="#"/>
</Properties>
<Digits name="Digits" bold="false" italic="false" color="DarkBlue" />
<RuleSets>
<RuleSet ignorecase="false" >
<Delimiters>&amp;&lt;&gt;~!@$%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
<Span name="DocLineComment" stopateol="false" bold="false" italic="false" color="Green">
<Begin >"""</Begin>
<End >"""</End>
</Span> </Span>
<Span foreground="Gray">
<Span name="LineComment" stopateol="true" bold="false" italic="false" color="Gray" > <Begin>\#</Begin>
<Begin >#</Begin>
</Span> </Span>
<Span foreground="#FF999999">
<Span name="LineComment2" stopateol="true" bold="false" italic="false" color="#999999" > <Begin>//</Begin>
<Begin >//</Begin>
</Span> </Span>
<Span color="Comment" ruleSet="comments set" multiline="true">
<Span name="BlockComment" rule="comments set" stopateol="false" bold="false" italic="false" color="Green" > <Begin>/\*</Begin>
<Begin >/*</Begin> <End>\*/</End>
<End >*/</End>
</Span> </Span>
<Span color="String">
<Span name="String" rule="str formatting" stopateol="true" bold="false" italic="false" color="Blue" escapecharacter="\"> <Begin>"</Begin>
<Begin >"</Begin> <End>"</End>
<End >"</End> <RuleSet>
<Span begin="\\" end="." />
<Span foreground="#FF993366" ruleSet="">
<!-- ruleSet="" reference this file's main ruleset, allowing normal boo code inside ${} -->
<Begin>\$\{</Begin>
<End>}</End>
</Span> </Span>
</RuleSet>
<Span name="MultiLineString" rule="str formatting" stopateol="false" bold="false" italic="false" color="Blue" >
<Begin >"""</Begin>
<End >"""</End>
</Span> </Span>
<Span color="String">
<Span name="Char" stopateol="true" bold="false" italic="false" color="Blue" escapecharacter="\"> <Begin>'</Begin>
<Begin >'</Begin> <End>'</End>
<End >'</End> <RuleSet>
<Span begin="\\" end="." />
</RuleSet>
</Span> </Span>
<Span foreground="#FFFF6600" multiline="true">
<Span name="MultiLineRegEx" stopateol="false" bold="false" italic="false" color="#FF6600"> <Begin>@/</Begin>
<Begin>@@/</Begin>
<End>/</End> <End>/</End>
</Span> </Span>
<Span foreground="#FFFF6600">
<Span name="RegEx" stopateol="true" bold="false" italic="false" color="#FF6600"> <Begin>/(?!(\ ))</Begin>
<Begin>/@! @@!/@</Begin>
<End>/</End> <End>/</End>
</Span> </Span>
<Keywords foreground="Black" fontWeight="bold">
<MarkPrevious bold="false" italic="false" color="MidnightBlue" >(</MarkPrevious> <Word>self</Word>
<Word>super</Word>
<KeyWords name="Punctuation" bold="false" italic="false" color="DarkGreen" > </Keywords>
<Key word="?"/> <Keywords foreground="DarkCyan" fontWeight="bold">
<Key word=","/> <Word>is</Word>
<Key word="."/> <Word>isa</Word>
<Key word=";"/> <Word>and</Word>
<Key word="("/> <Word>or</Word>
<Key word=")"/> <Word>not</Word>
<Key word="["/> </Keywords>
<Key word="]"/> <Keywords foreground="Blue" fontWeight="bold">
<Key word="{"/> <Word>else</Word>
<Key word="}"/> <Word>elif</Word>
<Key word="+"/> <Word>if</Word>
<Key word="-"/> <Word>match</Word>
<Key word="/"/> <Word>case</Word>
<Key word="%"/> <Word>unless</Word>
<Key word="*"/> <Word>otherwise</Word>
<Key word="&lt;"/> <Word>for</Word>
<Key word="&gt;"/> <Word>in</Word>
<Key word="^"/> <Word>while</Word>
<Key word="="/> </Keywords>
<Key word="~"/> <Keywords foreground="Navy">
<Key word="!"/> <Word>break</Word>
<Key word="|"/> <Word>continue</Word>
<Key word="&amp;"/> <Word>return</Word>
</KeyWords> <Word>yield</Word>
<Word>goto</Word>
<KeyWords name="AccessKeywords" bold="true" italic="false" color="Black" > </Keywords>
<Key word="self"/> <Keywords foreground="Teal" fontWeight="bold">
<Key word="super"/> <Word>try</Word>
</KeyWords> <Word>raise</Word>
<Word>ensure</Word>
<KeyWords name="OperatorKeywords" bold="true" italic="false" color="DarkCyan" > <Word>except</Word>
<Key word="is"/> <Word>retry</Word>
<Key word="isa"/> <Word>success</Word>
<Key word="and"/> </Keywords>
<Key word="or"/> <Keywords foreground="Olive">
<Key word="not"/> <Word>fixed</Word>
</KeyWords> <Word>unsafe</Word>
</Keywords>
<KeyWords name="SelectionStatements" bold="true" italic="false" color="Blue" > <Keywords foreground="Purple" fontWeight="bold">
<Key word="else"/> <Word>bool</Word>
<Key word="elif"/> <Word>double</Word>
<Key word="if"/> <Word>single</Word>
<Key word="match"/> <Word>byte</Word>
<Key word="case"/> <Word>sbyte</Word>
<Key word="unless"/> <Word>short</Word>
<Key word="otherwise"/> <Word>ushort</Word>
</KeyWords> <Word>int</Word>
<Word>uint</Word>
<KeyWords name="IterationStatements" bold="true" italic="false" color="Blue" > <Word>long</Word>
<Key word="for"/> <Word>ulong</Word>
<Key word="in"/> <Word>date</Word>
<Key word="while"/> <Word>timespan</Word>
</KeyWords> <Word>decimal</Word>
<Word>char</Word>
<KeyWords name="JumpStatements" bold="false" italic="false" color="Navy" > <Word>object</Word>
<Key word="break"/> <Word>duck</Word>
<Key word="continue"/> <Word>string</Word>
<Key word="return"/> <Word>regex</Word>
<Key word="yield"/> </Keywords>
<Key word="goto" /> <Keywords foreground="Red">
</KeyWords> <Word>void</Word>
</Keywords>
<KeyWords name="ExceptionHandlingStatements" bold="true" italic="false" color="Teal" > <Keywords foreground="Blue" fontWeight="bold">
<Key word="try"/> <Word>cast</Word>
<Key word="raise"/> <Word>as</Word>
<Key word="ensure"/> </Keywords>
<Key word="except"/> <Keywords foreground="Brown">
<Key word="retry"/> <Word>override</Word>
<Key word="success"/> <Word>static</Word>
</KeyWords> <Word>virtual</Word>
<Word>abstract</Word>
<KeyWords name="CheckedUncheckedStatements" bold="true" italic="false" color="DarkGray" > <Word>final</Word>
<Key word="checked"/> <Word>transient</Word>
<Key word="unchecked"/> <Word>partial</Word>
</KeyWords> </Keywords>
<Keywords foreground="Blue" fontWeight="bold">
<KeyWords name="UnsafeFixedStatements" bold="false" italic="false" color="Olive" > <Word>public</Word>
<Key word="fixed"/> <Word>protected</Word>
<Key word="unsafe"/> <Word>private</Word>
</KeyWords> <Word>internal</Word>
</Keywords>
<KeyWords name="ValueTypes" bold="true" italic="false" color="Purple" > <Keywords foreground="Green" fontWeight="bold">
<Key word="bool"/> <Word>namespace</Word>
<Key word="double"/> <Word>import</Word>
<Key word="single"/> <Word>from</Word>
<Key word="byte"/> </Keywords>
<Key word="sbyte"/> <Keywords foreground="SaddleBrown">
<Key word="short"/> <Word>get</Word>
<Key word="ushort"/> <Word>set</Word>
<Key word="int"/> </Keywords>
<Key word="uint"/> <Keywords foreground="Black" fontWeight="bold">
<Key word="long"/> <Word>null</Word>
<Key word="ulong"/> <Word>value</Word>
<Key word="date"/> <Word>true</Word>
<Key word="timespan" /> <Word>false</Word>
<Key word="decimal" /> <Word>ast</Word>
<Key word="char" /> </Keywords>
</KeyWords> <Keywords foreground="Maroon">
<Word>using</Word>
<KeyWords name="ReferenceTypes" bold="true" italic="false" color="Purple" > <Word>unchecked</Word>
<Key word="object"/> <Word>checked</Word>
<Key word="duck"/> <Word>lock</Word>
<Key word="string"/> <Word>getter</Word>
<Key word="regex"/> <Word>required</Word>
</KeyWords> <Word>rawArrayIndexing</Word>
<Word>normalArrayIndexing</Word>
<KeyWords name="Void" bold="false" italic="false" color="Red" > <Word>yieldAll</Word>
<Key word="void"/> </Keywords>
</KeyWords> <Keywords foreground="Purple">
<Word>assert</Word>
<KeyWords name="ConversionKeyWords" bold="true" italic="false" color="Blue" > <Word>array</Word>
<Key word="cast"/> <Word>matrix</Word>
<Key word="as"/> <Word>print</Word>
</KeyWords> <Word>gets</Word>
<Word>prompt</Word>
<KeyWords name="Modifiers" bold="false" italic="false" color="Brown" > <Word>enumerate</Word>
<Key word="override"/> <Word>zip</Word>
<Key word="static"/> <Word>filter</Word>
<Key word="virtual"/> <Word>map</Word>
<Key word="abstract"/> <Word>cat</Word>
<Key word="final"/> <Word>__eval__</Word>
<Key word="transient"/> <Word>__switch__</Word>
<Key word="partial"/> </Keywords>
</KeyWords> <Keywords foreground="Blue" fontWeight="bold">
<Word>constructor</Word>
<KeyWords name="AccessModifiers" bold="true" italic="false" color="Blue" > <Word>destructor</Word>
<Key word="public"/> <Word>def</Word>
<Key word="protected"/> <Word>include</Word>
<Key word="private"/> <Word>event</Word>
<Key word="internal"/> <Word>ref</Word>
</KeyWords> </Keywords>
<Keywords foreground="Gray">
<KeyWords name="NameSpaces" bold="true" italic="false" color="Green" > <Word>pass</Word>
<Key word="namespace"/> </Keywords>
<Key word="import"/> <Keywords foreground="Blue" fontWeight="bold">
<Key word="from"/> <Word>enum</Word>
</KeyWords> <Word>class</Word>
<Word>struct</Word>
<KeyWords name="GetSet" bold="false" italic="false" color="SaddleBrown" > <Word>interface</Word>
<Key word="get"/> <Word>mixin</Word>
<Key word="set"/> <Word>callable</Word>
</KeyWords> <Word>do</Word>
<Word>of</Word>
<KeyWords name="Literals" bold="true" italic="false" color="Black" > </Keywords>
<Key word="null"/> <Rule foreground="MidnightBlue">[\d\w_]+(?=(\s*\())</Rule>
<Key word="value"/> <Rule foreground="DarkBlue">\b0[xX][0-9a-fA-F]+|\b(\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
<Key word="true"/>
<Key word="false"/>
<Key word="ast" />
</KeyWords>
<KeyWords name="DefaultMacros" bold="false" italic="false" color="Maroon" >
<Key word="using"/>
<Key word="unchecked"/>
<Key word="checked"/>
<Key word="lock"/>
<Key word="getter"/>
<Key word="required"/>
<Key word="rawArrayIndexing"/>
<Key word="normalArrayIndexing"/>
<Key word="yieldAll" />
</KeyWords>
<KeyWords name="Builtins" bold="false" italic="false" color="Purple" >
<Key word="assert"/>
<Key word="array"/>
<Key word="matrix" />
<Key word="print"/>
<Key word="gets"/>
<Key word="prompt"/>
<Key word="enumerate"/>
<Key word="zip"/>
<Key word="filter"/>
<Key word="map"/>
<Key word="cat"/>
<Key word="__eval__" />
<Key word="__switch__" />
</KeyWords>
<KeyWords name="Methods" bold="true" italic="false" color="Blue" >
<Key word="constructor"/>
<Key word="destructor"/>
<Key word="def"/>
<Key word="include"/>
<Key word="event" />
<Key word="ref"/>
</KeyWords>
<KeyWords name="Pass" bold="false" italic="false" color="Gray" >
<Key word="pass"/>
</KeyWords>
<KeyWords name="TypesDef" bold="true" italic="false" color="Blue" >
<Key word="enum"/>
<Key word="class"/>
<Key word="struct" />
<Key word="interface"/>
<Key word="mixin"/>
<Key word="callable"/>
<Key word="do" />
<Key word="of" />
</KeyWords>
</RuleSet>
<RuleSet ignorecase="false" name="comments set" >
<Delimiters>&amp;&lt;&gt;~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
<Span name="BlockComment" rule="comment set 2" stopateol="false" bold="false" italic="false" color="#339966" >
<Begin >/*</Begin>
<End >*/</End>
</Span>
</RuleSet> </RuleSet>
<RuleSet name="comments set">
<RuleSet ignorecase="false" name="comment set 2" > <!-- allows nested /**/ comments, coloring them Green/Teal alternately -->
<Delimiters>&amp;&lt;&gt;~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters> <Span foreground="Teal" multiline="true">
<Begin>/\*</Begin>
<Span name="BlockComment" rule="comments set" stopateol="false" bold="false" italic="false" color="Teal" > <End>\*/</End>
<Begin >/*</Begin> <RuleSet>
<End >*/</End> <Span color="Comment" ruleSet="comments set" multiline="true">
<Begin>/\*</Begin>
<End>\*/</End>
</Span> </Span>
</RuleSet> </RuleSet>
<RuleSet ignorecase="false" name="str formatting" >
<Delimiters>&amp;&lt;&gt;~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
<Span name="Formatting" stopateol="false" bold="false" italic="false" color="#993366" >
<Begin >${</Begin>
<End >}</End>
</Span> </Span>
</RuleSet> </RuleSet>
</RuleSets>
</SyntaxDefinition> </SyntaxDefinition>

2
src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/Resources/XML-Mode.xshd

@ -6,7 +6,7 @@
<Color foreground="DarkMagenta" name="XmlTag" /> <Color foreground="DarkMagenta" name="XmlTag" />
<Color foreground="Red" name="AttributeName" /> <Color foreground="Red" name="AttributeName" />
<Color foreground="Blue" name="AttributeValue" /> <Color foreground="Blue" name="AttributeValue" />
<Color foreground="DarkRed" name="Entity" /> <Color foreground="Teal" name="Entity" />
<Color foreground="Olive" name="BrokenEntity" /> <Color foreground="Olive" name="BrokenEntity" />
<RuleSet> <RuleSet>

Loading…
Cancel
Save