You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
284 lines
11 KiB
284 lines
11 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
C# syntax highlighting
|
|
Written by Ezra Altahan
|
|
Created 08/09/2010 | Updated 17/04/2016
|
|
Version 1.3
|
|
|
|
HazelDev@outlook.com
|
|
https://github.com/ei
|
|
|
|
For syntax help, see Mode.xsd file
|
|
-->
|
|
|
|
<SyntaxDefinition name="C#" extensions=".cs">
|
|
|
|
<Environment>
|
|
<Default color="Black" bgcolor="#FFFFFF"/>
|
|
<Selection color="Black" bgcolor="#C3C3FF"/>
|
|
<LineNumbers color="Gray" bgcolor="#FFFFFF"/>
|
|
<CaretMarker color="#F0F0F1"/>
|
|
<VRuler color="#E0E0E5"/>
|
|
|
|
<FoldLine color="#A0A0A0" bgcolor="#FFFFFF"/>
|
|
<FoldMarker color="Black" bgcolor="#FFFFFF"/>
|
|
<SelectedFoldLine color="Black" bgcolor="#FFFFFF"/>
|
|
|
|
<EOLMarkers color="#CACAD2"/>
|
|
<SpaceMarkers color="#B6B6C0"/>
|
|
<TabMarkers color="#B6B6C0"/>
|
|
<InvalidLines color="#B6B6C0"/>
|
|
</Environment>
|
|
|
|
<Properties>
|
|
<Property name="LineComment" value="//"/>
|
|
<Property name="BlockCommentBegin" value="/*"/>
|
|
<Property name="BlockCommentEnd" value="*/"/>
|
|
</Properties>
|
|
|
|
<Digits name="Digits" bold="false" italic="false" color="DarkBlue"/>
|
|
|
|
<RuleSets>
|
|
<RuleSet ignorecase="false">
|
|
<Delimiters>&<>~!%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
|
|
|
<Span name="DocLineComment" rule="DocCommentSet" stopateol="true" color="Green" bold="false" italic="false" noescapesequences="true">
|
|
<Begin color="#808080" bold="false" italic="false">///@!/@</Begin>
|
|
</Span>
|
|
|
|
<Span name="LineComment" rule="CommentMarkerSet" stopateol="true" color="Green" bold="false" italic="false">
|
|
<Begin>//@!/@</Begin>
|
|
</Span>
|
|
<Span name="LineComment2" rule="CommentMarkerSet" stopateol="true" color="Green" bold="false" italic="false">
|
|
<Begin>////</Begin>
|
|
</Span>
|
|
|
|
<Span name="BlockComment" rule="CommentMarkerSet" stopateol="false" color="Green" bold="false" italic="false">
|
|
<Begin>/*</Begin>
|
|
<End>*/</End>
|
|
</Span>
|
|
|
|
<Span name="String" stopateol="true" color="Maroon" bold="false" italic="false" escapecharacter="\">
|
|
<Begin>"</Begin>
|
|
<End>"</End>
|
|
</Span>
|
|
|
|
<Span name="MultiLineString" stopateol="false" color="Maroon" bold="false" italic="false" escapecharacter='"'>
|
|
<Begin>@@"</Begin>
|
|
<End>"</End>
|
|
</Span>
|
|
|
|
<Span name="Char" stopateol="true" color="Maroon" bold="false" italic="false" escapecharacter="\">
|
|
<Begin>'</Begin>
|
|
<End>'</End>
|
|
</Span>
|
|
|
|
<Span name="Preprocessor" rule="PreprocessorSet" stopateol="true" color="#808080" bold="false" italic="false">
|
|
<Begin>#</Begin>
|
|
</Span>
|
|
|
|
<!--Method definition and calls-->
|
|
<MarkPrevious color="#74531f" bold="false" italic="false">(</MarkPrevious>
|
|
|
|
<!--Highlight type declaration-->
|
|
<MarkFollowing color="#163F38" bold="false" italic="true">class</MarkFollowing>
|
|
<MarkFollowing color="#163F38" bold="false" italic="true">interface</MarkFollowing>
|
|
<MarkFollowing color="#163F38" bold="false" italic="true">struct</MarkFollowing>
|
|
<MarkFollowing color="#163F38" bold="false" italic="true">record</MarkFollowing>
|
|
<MarkFollowing color="#163F38" bold="false" italic="true">enum</MarkFollowing>
|
|
|
|
<!-- https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ -->
|
|
<KeyWords name="Keywords" color="Blue" bold="false" italic="false">
|
|
<Key word="abstract"/>
|
|
<Key word="add"/>
|
|
<Key word="alias"/>
|
|
<Key word="and"/>
|
|
<Key word="args"/>
|
|
<Key word="as"/>
|
|
<Key word="ascending"/>
|
|
<Key word="async"/>
|
|
<Key word="await"/>
|
|
<Key word="base"/>
|
|
<Key word="by"/>
|
|
<Key word="checked"/>
|
|
<Key word="const"/>
|
|
<Key word="default"/>
|
|
<Key word="delegate"/>
|
|
<Key word="descending"/>
|
|
<Key word="dynamic"/>
|
|
<Key word="equals"/>
|
|
<Key word="event"/>
|
|
<Key word="explicit"/>
|
|
<Key word="extern"/>
|
|
<Key word="false"/>
|
|
<Key word="file"/>
|
|
<Key word="fixed"/>
|
|
<Key word="from"/>
|
|
<Key word="get"/>
|
|
<Key word="global"/>
|
|
<Key word="group"/>
|
|
<Key word="implicit"/>
|
|
<Key word="init"/>
|
|
<Key word="interface"/>
|
|
<Key word="internal"/>
|
|
<Key word="into"/>
|
|
<Key word="is"/>
|
|
<Key word="join"/>
|
|
<Key word="let"/>
|
|
<Key word="lock"/>
|
|
<Key word="managed"/>
|
|
<Key word="nameof"/>
|
|
<Key word="namespace"/>
|
|
<Key word="new"/>
|
|
<Key word="not"/>
|
|
<Key word="notnull"/>
|
|
<Key word="null"/>
|
|
<Key word="object"/>
|
|
<Key word="on"/>
|
|
<Key word="operator"/>
|
|
<Key word="or"/>
|
|
<Key word="orderby"/>
|
|
<Key word="out"/>
|
|
<Key word="override"/>
|
|
<Key word="params"/>
|
|
<Key word="partial"/>
|
|
<Key word="private"/>
|
|
<Key word="protected"/>
|
|
<Key word="public"/>
|
|
<Key word="readonly"/>
|
|
<Key word="ref"/>
|
|
<Key word="remove"/>
|
|
<Key word="required"/>
|
|
<Key word="scoped"/>
|
|
<Key word="sealed"/>
|
|
<Key word="select"/>
|
|
<Key word="set"/>
|
|
<Key word="sizeof"/>
|
|
<Key word="stackalloc"/>
|
|
<Key word="static"/>
|
|
<Key word="this"/>
|
|
<Key word="true"/>
|
|
<Key word="typeof"/>
|
|
<Key word="unchecked"/>
|
|
<Key word="unmanaged"/>
|
|
<Key word="unsafe"/>
|
|
<Key word="using"/>
|
|
<Key word="value"/>
|
|
<Key word="var"/>
|
|
<Key word="virtual"/>
|
|
<Key word="void"/>
|
|
<Key word="volatile"/>
|
|
<Key word="when"/>
|
|
<Key word="where"/>
|
|
<Key word="with"/>
|
|
</KeyWords>
|
|
|
|
<!--https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/statement-keywords-->
|
|
<KeyWords name="StatementKeywords" color="DarkViolet" bold="false" italic="false">
|
|
<Key word="break"/>
|
|
<Key word="catch"/>
|
|
<Key word="case"/>
|
|
<Key word="continue"/>
|
|
<Key word="do"/>
|
|
<Key word="else"/>
|
|
<Key word="finally"/>
|
|
<Key word="for"/>
|
|
<Key word="foreach"/>
|
|
<Key word="goto"/>
|
|
<Key word="if"/>
|
|
<Key word="in"/>
|
|
<Key word="return"/>
|
|
<Key word="switch"/>
|
|
<Key word="throw"/>
|
|
<Key word="try"/>
|
|
<Key word="while"/>
|
|
<Key word="yield"/>
|
|
</KeyWords>
|
|
|
|
<KeyWords name="TypesKeywords" color="#2d7c6d" bold="false" italic="false">
|
|
<Key word="bool"/>
|
|
<Key word="byte"/>
|
|
<Key word="char"/>
|
|
<Key word="class"/>
|
|
<Key word="decimal"/>
|
|
<Key word="double"/>
|
|
<Key word="enum"/>
|
|
<Key word="float"/>
|
|
<Key word="int"/>
|
|
<Key word="interface"/>
|
|
<Key word="long"/>
|
|
<Key word="nint"/>
|
|
<Key word="nuint"/>
|
|
<Key word="record"/>
|
|
<Key word="sbyte"/>
|
|
<Key word="short"/>
|
|
<Key word="string"/>
|
|
<Key word="struct"/>
|
|
<Key word="uint"/>
|
|
<Key word="ulong"/>
|
|
<Key word="ushort"/>
|
|
</KeyWords>
|
|
</RuleSet>
|
|
|
|
<RuleSet name="CommentMarkerSet" ignorecase="false">
|
|
<Delimiters><>~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
|
|
|
<KeyWords name="Keywords1" color="Gray" bold="false" italic="false">
|
|
<Key word="TODO"/>
|
|
<Key word="FIXME"/>
|
|
<Key word="HACK"/>
|
|
<Key word="UNDONE"/>
|
|
</KeyWords>
|
|
</RuleSet>
|
|
|
|
<RuleSet name="DocCommentSet" ignorecase="false">
|
|
<Delimiters><>~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
|
|
|
<Span name="XmlTag" rule="XmlDocSet" stopateol="true" color="#808080" bold="false" italic="false">
|
|
<Begin><</Begin>
|
|
<End>></End>
|
|
</Span>
|
|
|
|
<KeyWords name="Keywords1" color="Gray" bold="false" italic="false">
|
|
<Key word="TODO"/>
|
|
<Key word="FIXME"/>
|
|
<Key word="HACK"/>
|
|
<Key word="UNDONE"/>
|
|
</KeyWords>
|
|
</RuleSet>
|
|
|
|
<RuleSet name="PreprocessorSet" ignorecase="false">
|
|
<Delimiters>&<>~!%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
|
|
|
<KeyWords name="Preprocessor" color="#808080" bold="false" italic="false">
|
|
<Key word="if"/>
|
|
<Key word="else"/>
|
|
<Key word="elif"/>
|
|
<Key word="endif"/>
|
|
<Key word="define"/>
|
|
<Key word="undef"/>
|
|
<Key word="warning"/>
|
|
<Key word="error"/>
|
|
<Key word="line"/>
|
|
<Key word="region"/>
|
|
<Key word="endregion"/>
|
|
<Key word="pragma"/>
|
|
</KeyWords>
|
|
</RuleSet>
|
|
|
|
<RuleSet name="XmlDocSet" ignorecase="false">
|
|
<Delimiters>/=</Delimiters>
|
|
|
|
<Span name="String" stopateol="true" bold="false" italic="false" color="Black">
|
|
<Begin color="#808080">"</Begin>
|
|
<End color="#808080">"</End>
|
|
</Span>
|
|
|
|
<Span name="Char" stopateol="true" color="Black" bold="false" italic="false">
|
|
<Begin color="#808080">'</Begin>
|
|
<End color="#808080">'</End>
|
|
</Span>
|
|
</RuleSet>
|
|
</RuleSets>
|
|
</SyntaxDefinition>
|