-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCSharp.syn
More file actions
148 lines (140 loc) · 6.35 KB
/
Copy pathCSharp.syn
File metadata and controls
148 lines (140 loc) · 6.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="utf-8" ?>
<Language Name="Visual C#" Startblock="CS Code">
<FileTypes>
<FileType Extension=".cs" Name="C# code file"/>
</FileTypes>
<Block Name="CS Code" Style="CS Code" EscapeChar="" IsMultiline="true">
<Scope Start="{" End="}" Style="CS Scope" Text="{...}" CauseIndent="true" />
<Scope Start="#if" End="#endif" Style="CS Region" Text="#if...endif" />
<Scope Start="#region" End="#endregion" Style="CS Region" Text="" DefaultExpanded="false" />
<Bracket Start="(" End=")" Style="CS Code" />
<Bracket Start="[" End="]" Style="CS Code" />
<!-- Keywords that can exist inside this block -->
<Keywords>
<PatternGroup Name="Keywords" Style="CS Keyword" CaseSensitive="true">
<Patterns>
abstract base break byte case catch checked class const continue
default delegate do value
else enum event exdouble explicit extern
false finally fixed for foreach
get goto
if implicit in interface internal is
lock
namespace new null
object operator out override
private protected public
readonly ref return
sealed set sizeof static struct switch
this throw true try typeof
unchecked unsafe using
virtual
while
</Patterns>
</PatternGroup>
<PatternGroup Name="Numbers" Style="CS Number">
<Pattern Text="(0x[0-9a-fA-F]+)" IsComplex="true" />
<Pattern Text="([0-9]+)" IsComplex="true" />
</PatternGroup>
<!-- Datatypes for c# -->
<PatternGroup Name="DataTypes" Style="CS Datatype" CaseSensitive="true">
<Patterns>
string exfloat float int long sbyte short uint ulong void double decimal bool char ushort
</Patterns>
</PatternGroup>
</Keywords>
<!-- Operators that can exist inside this block -->
<Operators>
<PatternGroup name="Operators" Style="CS Operator">
<Pattern Text="." />
<Pattern Text="!" />
<Pattern Text=":" />
<Pattern Text="^" />
<Pattern Text="*" />
<Pattern Text="/" />
<Pattern Text="+" />
<Pattern Text="-" />
<Pattern Text="=" />
<Pattern Text="|" />
<Pattern Text=">" />
<Pattern Text="<" />
</PatternGroup>
</Operators>
<!-- Blocks that can exist inside this block -->
<ChildBlocks>
<Child Name="CS XML Comment" />
<Child Name="CS Multiline Comment" />
<Child Name="CS Singleline Comment" />
<Child Name="CS String" />
<Child Name="CS Char" />
<Child Name="CS Literal String" />
<Child Name="CS Literal Char" />
<Child Name="CS Code" />
</ChildBlocks>
</Block>
<Block Name="CS XML Comment" Style="CS Comment" EscapeChar="" IsMultiline="false">
<Scope Start="///" End="" Style="CS XML Comment" />
<!-- this block can contain xml tags -->
<ChildBlocks>
<Child Name="CS XML Comment Tag" />
</ChildBlocks>
</Block>
<!-- this block is the xml tags in xml comments-->
<Block Name="CS XML Comment Tag" Style="CS XML Tag Text" EscapeChar="" IsMultiline="false">
<Scope Start="<" End=">" Style="CS XML Tag" />
<Operators>
<PatternGroup name="CS XML Attrib" Style="CS XML Attrib">
<!-- operator is the attributes that can exist within xml tags-->
<Pattern Text="( [a-z,A-Z,:]+)" IsComplex="true" />
</PatternGroup>
</Operators>
<ChildBlocks>
<Child Name="XML String" />
</ChildBlocks>
</Block>
<Block Name="XML String" Style="CS XML String" EscapeChar="" IsMultiline="false">
<Scope Start=""" End=""" Style="CS XML String" />
</Block>
<Block Name="CS Multiline Comment" Style="CS Comment" EscapeChar="" IsMultiline="true">
<Scope Start="/*" End="*/" Style="CS Comment" Text="/*...*/"/>
<Operators>
<PatternGroup name="URL" Style="CS URL">
<Pattern Text="http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" IsComplex="true" />
</PatternGroup>
</Operators>
</Block>
<Block Name="CS Singleline Comment" Style="CS Comment" EscapeChar="" IsMultiline="false">
<Scope Start="//" End="" Style="CS Comment" />
</Block>
<Block Name="CS String" Style="CS String" EscapeChar="\" IsMultiline="false">
<Scope Start=""" End=""" EscapeChar="\" Style="CS String" />
<Operators>
<PatternGroup name="URL" Style="CS URL">
<Pattern Text="http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" IsComplex="true" />
</PatternGroup>
</Operators>
</Block>
<Block Name="CS Char" Style="CS String" EscapeChar="" IsMultiline="false">
<Scope Start="'" End="'" EscapeChar="\" Style="CS String" />
</Block>
<Block Name="CS Literal String" Style="CS String" EscapeChar="" IsMultiline="true" >
<Scope Start="@"" End=""" Style="CS String" Text="@'...'" />
</Block>
<Block Name="CS Literal Char" Style="CS String" EscapeChar="" IsMultiline="false">
<Scope Start="@'" End="'" Style="CS String" />
</Block>
<Style Name="CS Code" ForeColor="" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="CS Scope" ForeColor="" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="CS Region" ForeColor="blue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="CS XML Comment" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="CS XML Tag" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="CS XML Tag Text" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="CS XML Attrib" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="CS XML String" ForeColor="gray" BackColor="lightyellow" Bold="false" Italic="false" Underline="false" />
<Style Name="CS Comment" ForeColor="Green" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="CS String" ForeColor="SteelBlue" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="CS Number" ForeColor="Teal" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="CS Operator" ForeColor="Red" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="CS Keyword" ForeColor="Blue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="CS Datatype" ForeColor="DarkBlue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="CS URL" ForeColor="Blue" BackColor="" Bold="false" Italic="false" Underline="true" />
</Language>