;C# Syntax highlight Script for Twistpad
;1998 - 2009 © Carthago Software

[::Header::]
SyntaxName=C Sharp
Extensions=cs
functions=\b(bool|byte|sbyte|char|short|ushort|int|uint|long|ulong|float|double|decimal|void)\b(.*)(\(.*\))($|[^;$])
FunctionSubs=$2
Spelling=0
SpellingContexts=1;2;3;4
CommentChar=//

[ssComment1]
Type=StartStop
Context=1
Scope=0
Priority=9
WholeWordOnly=0
First=/*
Last=*/
ColorConstant=ColorComments
escapeChar=\
outline=1

[ssComent2]
Type=StartStop
Context=1
Scope=0
Priority=10
WholeWordOnly=0
First=///
Last=
ColorConstant=ColorComments
escapeChar=\

[ssComent3]
Type=StartStop
Context=1
Scope=0
Priority=9
WholeWordOnly=0
First=//
Last=
ColorConstant=ColorComments
escapeChar=\

[ssStrings2]
Type=StartStop
Context=3
Scope=0
Priority=9
WholeWordOnly=0
First="
Last="
ColorConstant=ColorStrings
escapeChar=\

[ssin_comment_tag]
Type=StartStop
Context=6
Scope=4
Priority=10
WholeWordOnly=0
First=<
Last=>
ColorConstant=ColorQuotes

[ssRegions]
Type=StartStop
Context=7
Scope=0
Priority=5
WholeWordOnly=1
First=#region
Last=#end region
Outline=1
BeginParagraph=1
smart=1

[ssBracket]
Type=StartStop
Context=7
Scope=0
Priority=5
WholeWordOnly=1
First={
Last=}
Outline=1
smart=1
BeginParagraph=0

[kKeywords]
Type=keyword
Context=100
Scope=0
Priority=7
WholeWordOnly=1
Keyword1=new;sizeof;typeof;checked;unchecked;abstract;as;base;bool;break;byte;case;catch;char;checked;class;const;continue;decimal
Keyword2=default;delegate;do;double;else;enum;event;explicit;extern;false;finally;fixed;float;for;foreach;goto;if;implicit;in;int
Keyword3=interface;internal;is;lock;long;namespace;new;null;object;operator;out;override;params;private;protected;public;readonly
Keyword4=ref;return;sbyte;sealed;short;sizeof;stackalloc;static;string;struct;switch;this;throw;true;try;typeof;uint;ulong;unchecked
Keyword5=unsafe;ushort;using;virtual;void;while;get;set
ColorConstant=ColorKeyword1

[kPreProcessors]
Type=keyword
Context=101
Scope=0
Priority=7
WholeWordOnly=1
Keyword1=#if;#else;#elif;#endif;#define;#undef;#warning;#error;#line;
Keyword2=#region;#endregion
ColorConstant=ColorPreProcessors
BeginParagraph=1

[kslashcolor]
Type=keyword
Context=102
Scope=4
Priority=7
WholeWordOnly=1
Keyword1=///
ColorConstant=ColorKeyword2
BeginParagraph=0


