Skip to content

Commit 0083aab

Browse files
committed
Add ActionScript dark syntax highlighting definition
Introduces a new XML-based syntax definition for ActionScript in the dark theme, specifying colors and rules for keywords, comments, strings, and documentation tags.
1 parent afca07e commit 0083aab

File tree

1 file changed

+137
-0
lines changed

1 file changed

+137
-0
lines changed
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<SyntaxDefinition name="ActionScript" extensions=".as;.mx">
4+
5+
<Environment>
6+
<Default color="#D4D4D4" bgcolor="#1E1E1E"/>
7+
<Selection color="#D4D4D4" bgcolor="#264F78"/>
8+
<LineNumbers color="#858585" bgcolor="#1E1E1E"/>
9+
<CaretMarker color="#AEAFAD"/>
10+
<VRuler color="#333337"/>
11+
12+
<FoldLine color="#444444" bgcolor="#1E1E1E"/>
13+
<FoldMarker color="#D4D4D4" bgcolor="#2D2D2D"/>
14+
<SelectedFoldLine color="#D4D4D4" bgcolor="#2D2D2D"/>
15+
16+
<EOLMarkers color="#404040"/>
17+
<SpaceMarkers color="#404040"/>
18+
<TabMarkers color="#404040"/>
19+
<InvalidLines color="#B6B6C0"/>
20+
</Environment>
21+
22+
<Properties>
23+
<Property name="LineComment" value="//"/>
24+
<Property name="BlockCommentBegin" value="/*"/>
25+
<Property name="BlockCommentEnd" value="*/"/>
26+
</Properties>
27+
28+
<Digits name="Digits" color="#B5CEA8"/>
29+
30+
<RuleSets>
31+
<RuleSet ignorecase="false">
32+
33+
<Delimiters>&amp;&lt;&gt;~!%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
34+
35+
<Span name="LineComment" rule="Documentation" stopateol="true" color="#6A9955" bold="false" italic="false">
36+
<Begin>//</Begin>
37+
</Span>
38+
39+
<Span name="BlockComment" rule="Documentation" stopateol="false" color="#6A9955" bold="false" italic="false">
40+
<Begin>/*</Begin>
41+
<End>*/</End>
42+
</Span>
43+
44+
<Span name="String" stopateol="true" color="#CE9178" bold="false" italic="false" escapecharacter='"'>
45+
<Begin>"</Begin>
46+
<End>"</End>
47+
</Span>
48+
49+
<Span name="Char" stopateol="true" color="#CE9178" bold="false" italic="false" escapecharacter="\">
50+
<Begin>'</Begin>
51+
<End>'</End>
52+
</Span>
53+
54+
<Span name="Preprocessor" stopateol="true" color="#D16969" bold="false" italic="false">
55+
<Begin>#</Begin>
56+
</Span>
57+
58+
<MarkFollowing markmarker="true" color="#D16969" bold="false" italic="false">#</MarkFollowing>
59+
60+
<KeyWords name="Keywords1" color="#569CD6" bold="false" italic="false">
61+
<Key word="as"/>
62+
<Key word="break"/>
63+
<Key word="case"/>
64+
<Key word="catch"/>
65+
<Key word="class"/>
66+
<Key word="const"/>
67+
<Key word="continue"/>
68+
<Key word="default"/>
69+
<Key word="delete"/>
70+
<Key word="do"/>
71+
<Key word="dynamic"/>
72+
<Key word="each"/>
73+
<Key word="else"/>
74+
<Key word="extends"/>
75+
<Key word="false"/>
76+
<Key word="finally"/>
77+
<Key word="for"/>
78+
<Key word="function"/>
79+
<Key word="get"/>
80+
<Key word="if"/>
81+
<Key word="implements"/>
82+
<Key word="import"/>
83+
<Key word="in"/>
84+
<Key word="instanceof"/>
85+
<Key word="interface"/>
86+
<Key word="internal"/>
87+
<Key word="is"/>
88+
<Key word="namespace"/>
89+
<Key word="native"/>
90+
<Key word="new"/>
91+
<Key word="null"/>
92+
<Key word="override"/>
93+
<Key word="package"/>
94+
<Key word="private"/>
95+
<Key word="protected"/>
96+
<Key word="public"/>
97+
<Key word="return"/>
98+
<Key word="set"/>
99+
<Key word="static"/>
100+
<Key word="super"/>
101+
<Key word="switch"/>
102+
<Key word="this"/>
103+
<Key word="throw"/>
104+
<Key word="to"/>
105+
<Key word="true"/>
106+
<Key word="try"/>
107+
<Key word="typeof"/>
108+
<Key word="use"/>
109+
<Key word="var"/>
110+
<Key word="void"/>
111+
<Key word="while"/>
112+
<Key word="with"/>
113+
</KeyWords>
114+
</RuleSet>
115+
116+
<RuleSet name="Documentation" ignorecase="false">
117+
<Delimiters>~!%^*()-+=|\#/{}[]:;"'&lt;&gt; , .?</Delimiters>
118+
119+
<KeyWords name="DocKeywords1" color="#D7BA7D" bold="false" italic="false">
120+
<Key word="@param"/>
121+
<Key word="@see"/>
122+
<Key word="@return"/>
123+
<Key word="@author"/>
124+
<Key word="@eventType"/>
125+
<Key word="@copy"/>
126+
<Key word="@default"/>
127+
<Key word="@example"/>
128+
<Key word="@exampleText"/>
129+
<Key word="@includeExample"/>
130+
<Key word="@inheritDoc"/>
131+
<Key word="@internal"/>
132+
<Key word="@throws"/>
133+
<Key word="@since"/>
134+
</KeyWords>
135+
</RuleSet>
136+
</RuleSets>
137+
</SyntaxDefinition>

0 commit comments

Comments
 (0)