-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathAngelscript.xshd
142 lines (142 loc) · 5.08 KB
/
Angelscript.xshd
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
<?xml version="1.0"?>
<!-- syntaxdefinition for C/C++ 2001 by Andrea Paatz and Mike Krueger -->
<!-- converted to AvalonEdit format by Siegfried Pammer in 2010 -->
<SyntaxDefinition name="Angelscript" extensions=".as" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
<Color name="Comment" foreground="#FF7F9F7F" fontStyle="italic"/>
<Color name="Character" foreground="#FFDCA3A3" fontWeight="bold" />
<Color name="String" foreground="#FFCC9393" />
<Color name="Preprocessor" foreground="#FFFFCFAF" />
<Color name="Punctuation" foreground="#FF9F9D6D" />
<Color name="MethodName" foreground="#FFEFDCBC" fontWeight="bold" />
<Color name="Digits" foreground="#FFC0BED1" />
<Color name="CompoundKeywords" foreground="#FFCEDF99" fontWeight="bold" />
<Color name="This" foreground="#FFFFCFAF" fontWeight="bold" />
<Color name="Operators" foreground="#FFDCA3A3" fontWeight="bold" />
<Color name="Namespace" foreground="#FF80D4AA" fontWeight="bold" />
<Color name="Friend" foreground="#FFA52A2A" />
<Color name="Modifiers" foreground="#FF80D4AA" fontWeight="bold" />
<Color name="TypeKeywords" foreground="#FFEFEFAF" />
<Color name="BooleanConstants" foreground="#FFDCA3A3" fontWeight="bold" />
<Color name="Keywords" foreground="#FFCEDF99" fontWeight="bold" />
<Color name="LoopKeywords" foreground="#FFCEDF99" fontWeight="bold" />
<Color name="JumpKeywords" foreground="#FFCEDF99" />
<Color name="ExceptionHandling" foreground="#FFFFCFAF" fontWeight="bold" />
<Color name="ControlFlow" foreground="#FFEFDCBC" fontWeight="bold" />
<RuleSet ignoreCase="false">
<Rule color="String">
[?,.;()\[\]{}+\-/%*<>^=~!&]+
</Rule>
<Rule color="Keywords">
\w*@
</Rule>
<Keywords color="CompoundKeywords">
<Word>interface</Word>
<Word>abstract</Word>
<Word>shared</Word>
<Word>override</Word>
<Word>final</Word>
<Word>where</Word>
<Word>finally</Word>
<Word>null</Word>
</Keywords>
<Keywords color="This">
<Word>this</Word>
</Keywords>
<Keywords color="Operators">
<Word>new</Word>
</Keywords>
<Keywords color="Namespace">
<Word>using</Word>
<Word>namespace</Word>
<Word>import</Word>
<Word>from</Word>
</Keywords>
<Keywords color="Friend">
<Word>friend</Word>
</Keywords>
<Keywords color="Modifiers">
<Word>private</Word>
<Word>protected</Word>
<Word>public</Word>
<Word>const</Word>
<Word>static</Word>
</Keywords>
<Keywords color="Keywords">
<Word>bool</Word>
<Word>float</Word>
<Word>uint8</Word>
<Word>uint16</Word>
<Word>uint</Word>
<Word>uint64</Word>
<Word>int8</Word>
<Word>int16</Word>
<Word>int</Word>
<Word>int64</Word>
<Word>void</Word>
<Word>class</Word>
<Word>enum</Word>
</Keywords>
<Keywords color="Keywords">
<Word>false</Word>
<Word>true</Word>
</Keywords>
<Keywords color="This">
<Word>do</Word>
<Word>for</Word>
<Word>while</Word>
</Keywords>
<Keywords color="This">
<Word>break</Word>
<Word>continue</Word>
<Word>goto</Word>
<Word>return</Word>
</Keywords>
<Keywords color="ExceptionHandling">
<Word>catch</Word>
<Word>throw</Word>
<Word>try</Word>
</Keywords>
<Keywords color="This">
<Word>case</Word>
<Word>else</Word>
<Word>if</Word>
<Word>switch</Word>
<Word>default</Word>
</Keywords>
<Keywords color="Namespace">
<Word>explicit</Word>
<Word>export</Word>
<Word>operator</Word>
<Word>Virtual</Word>
<Word>cast</Word>
<Word>template</Word>
<Word>funcdef</Word>
</Keywords>
<Span color="Preprocessor">
<Begin>\#</Begin>
</Span>
<Span color="Comment">
<Begin>//</Begin>
</Span>
<Span color="Comment" multiline="true">
<Begin>/\*</Begin>
<End>\*/</End>
</Span>
<Span color="String">
<Begin>"</Begin>
<End>"</End>
<RuleSet>
<Span begin="\\" end="." />
</RuleSet>
</Span>
<Span color="Character">
<Begin>'</Begin>
<End>'</End>
<RuleSet>
<Span begin="\\" end="." />
</RuleSet>
</Span>
<Rule color="MethodName">[\d\w_]+(?=(\s*\())</Rule>
<Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
</RuleSet>
</SyntaxDefinition>