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

Loading…
Cancel
Save