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. 524
      src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/Resources/Boo.xshd
  2. 2
      src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/Resources/XML-Mode.xshd

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