PageRenderTime 63ms CodeModel.GetById 58ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/modes/actionscript.xml

#
XML | 236 lines | 227 code | 3 blank | 6 comment | 0 complexity | 08ce7eb07c58710a20647364ecce6b9f MD5 | raw file
  1<?xml version="1.0"?>
  2<!DOCTYPE MODE SYSTEM "xmode.dtd">
  3
  4<!--
  5	ActionScript mode by Ben Glazer <ben@enspire.com>
  6	Adapted from JavaScript mode by Andre Kaplan
  7-->
  8<MODE>
  9	<PROPS>
 10		<PROPERTY NAME="commentStart" VALUE="/*" />
 11		<PROPERTY NAME="commentEnd" VALUE="*/" />
 12		<PROPERTY NAME="lineComment" VALUE="//" />
 13		<PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />
 14
 15		<!-- Auto indent -->
 16		<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
 17		<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
 18		<PROPERTY NAME="indentNextLine"
 19			VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
 20		<!-- set this to 'true' if you want to use GNU coding style -->
 21		<PROPERTY NAME="doubleBracketIndent" VALUE="false" />
 22		<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
 23	</PROPS>
 24
 25	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 26		<SPAN TYPE="COMMENT1">
 27			<BEGIN>/*</BEGIN>
 28			<END>*/</END>
 29		</SPAN>
 30
 31		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 32			<BEGIN>"</BEGIN>
 33			<END>"</END>
 34		</SPAN>
 35
 36		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 37			<BEGIN>'</BEGIN>
 38			<END>'</END>
 39		</SPAN>
 40
 41		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 42
 43		<EOL_SPAN TYPE="COMMENT2">//</EOL_SPAN>
 44
 45		<SEQ TYPE="OPERATOR">=</SEQ>
 46		<SEQ TYPE="OPERATOR">!</SEQ>
 47		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 48		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 49		<SEQ TYPE="OPERATOR">+</SEQ>
 50		<SEQ TYPE="OPERATOR">-</SEQ>
 51		<SEQ TYPE="OPERATOR">/</SEQ>
 52		<SEQ TYPE="OPERATOR">*</SEQ>
 53		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 54		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 55		<SEQ TYPE="OPERATOR">%</SEQ>
 56		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 57		<SEQ TYPE="OPERATOR">|</SEQ>
 58		<SEQ TYPE="OPERATOR">^</SEQ>
 59		<SEQ TYPE="OPERATOR">~</SEQ>
 60		<SEQ TYPE="OPERATOR">.</SEQ>
 61		<SEQ TYPE="OPERATOR">}</SEQ>
 62		<SEQ TYPE="OPERATOR">{</SEQ>
 63		<SEQ TYPE="OPERATOR">,</SEQ>
 64		<SEQ TYPE="OPERATOR">;</SEQ>
 65		<SEQ TYPE="OPERATOR">]</SEQ>
 66		<SEQ TYPE="OPERATOR">[</SEQ>
 67		<SEQ TYPE="OPERATOR">?</SEQ>
 68		<MARK_PREVIOUS AT_WHITESPACE_END="TRUE"
 69			EXCLUDE_MATCH="TRUE"
 70			TYPE="LABEL">:</MARK_PREVIOUS>
 71		<SEQ TYPE="OPERATOR">:</SEQ>
 72
 73		<KEYWORDS>
 74			<!-- ActionScript's reserved words (see AS:TDG p.332) -->
 75			<KEYWORD1>add</KEYWORD1>   <!-- deprecated -->
 76			<KEYWORD1>and</KEYWORD1>   <!-- deprecated -->
 77			<KEYWORD1>break</KEYWORD1>
 78			<KEYWORD1>continue</KEYWORD1>
 79			<KEYWORD1>delete</KEYWORD1>
 80			<KEYWORD1>do</KEYWORD1>
 81			<KEYWORD1>else</KEYWORD1>
 82			<KEYWORD1>eq</KEYWORD1>   <!-- deprecated -->
 83			<KEYWORD1>for</KEYWORD1>
 84			<KEYWORD1>function</KEYWORD1>
 85			<KEYWORD1>ge</KEYWORD1>   <!-- deprecated -->
 86			<KEYWORD1>gt</KEYWORD1>   <!-- deprecated -->
 87			<KEYWORD1>if</KEYWORD1>
 88			<KEYWORD1>ifFrameLoaded</KEYWORD1>   <!-- deprecated -->
 89			<KEYWORD1>in</KEYWORD1>
 90			<KEYWORD1>le</KEYWORD1>   <!-- deprecated -->
 91			<KEYWORD1>lt</KEYWORD1>   <!-- deprecated -->
 92			<KEYWORD1>ne</KEYWORD1>   <!-- deprecated -->
 93			<KEYWORD1>new</KEYWORD1>
 94			<KEYWORD1>not</KEYWORD1>   <!-- deprecated -->
 95			<KEYWORD1>on</KEYWORD1>
 96			<KEYWORD1>onClipEvent</KEYWORD1>
 97			<KEYWORD1>or</KEYWORD1>   <!-- deprecated -->
 98			<KEYWORD1>return</KEYWORD1>
 99			<LITERAL2>this</LITERAL2>
100			<KEYWORD1>tellTarget</KEYWORD1>   <!-- deprecated -->
101			<KEYWORD1>typeof</KEYWORD1>
102			<KEYWORD1>var</KEYWORD1>
103			<KEYWORD3>void</KEYWORD3>
104			<KEYWORD1>while</KEYWORD1>
105			<KEYWORD1>with</KEYWORD1>
106
107			<!-- Built-in objects (good idea not to use these names!)-->
108			<KEYWORD3>Array</KEYWORD3>
109			<KEYWORD3>Boolean</KEYWORD3>
110			<KEYWORD3>Color</KEYWORD3>
111			<KEYWORD3>Date</KEYWORD3>
112			<KEYWORD3>Function</KEYWORD3>
113			<KEYWORD3>Key</KEYWORD3>
114			<KEYWORD3>MovieClip</KEYWORD3>
115			<KEYWORD3>Math</KEYWORD3>
116			<KEYWORD3>Mouse</KEYWORD3>
117			<KEYWORD3>Number</KEYWORD3>
118			<KEYWORD3>Object</KEYWORD3>
119			<KEYWORD3>Selection</KEYWORD3>
120			<KEYWORD3>Sound</KEYWORD3>
121			<KEYWORD3>String</KEYWORD3>
122			<KEYWORD3>XML</KEYWORD3>
123			<KEYWORD3>XMLNode</KEYWORD3>
124			<KEYWORD3>XMLSocket</KEYWORD3>
125
126			<!-- Literals -->
127			<LITERAL2>NaN</LITERAL2>
128			<LITERAL2>Infinity</LITERAL2>
129			<LITERAL2>false</LITERAL2>
130			<LITERAL2>null</LITERAL2>
131			<LITERAL2>true</LITERAL2>
132			<LITERAL2>undefined</LITERAL2>
133
134			<!-- Global functions -->
135			<LITERAL2>Boolean</LITERAL2>
136			<LITERAL2>call</LITERAL2>
137			<LITERAL2>Date</LITERAL2>
138			<LITERAL2>duplicateMovieClip</LITERAL2>
139			<LITERAL2>escape</LITERAL2>
140			<LITERAL2>eval</LITERAL2>
141			<LITERAL2>fscommand</LITERAL2>
142			<LITERAL2>getProperty</LITERAL2>
143			<LITERAL2>getTimer</LITERAL2>
144			<LITERAL2>getURL</LITERAL2>
145			<LITERAL2>getVersion</LITERAL2>
146			<LITERAL2>gotoAndPlay</LITERAL2>
147			<LITERAL2>gotoAndStop</LITERAL2>
148			<LITERAL2>#include</LITERAL2>
149			<LITERAL2>int</LITERAL2>   <!-- deprecated -->
150			<LITERAL2>isFinite</LITERAL2>
151			<LITERAL2>isNaN</LITERAL2>
152			<LITERAL2>loadMovie</LITERAL2>
153			<LITERAL2>loadMovieNum</LITERAL2>
154			<LITERAL2>loadVariables</LITERAL2>
155			<LITERAL2>loadVariablesNum</LITERAL2>
156			<LITERAL2>maxscroll</LITERAL2>
157			<LITERAL2>newline</LITERAL2>
158			<LITERAL2>nextFrame</LITERAL2>
159			<LITERAL2>nextScene</LITERAL2>
160			<LITERAL2>Number</LITERAL2>
161			<LITERAL2>parseFloat</LITERAL2>
162			<LITERAL2>parseInt</LITERAL2>
163			<LITERAL2>play</LITERAL2>
164			<LITERAL2>prevFrame</LITERAL2>
165			<LITERAL2>prevScene</LITERAL2>
166			<LITERAL2>print</LITERAL2>
167			<LITERAL2>printAsBitmap</LITERAL2>
168			<LITERAL2>printAsBitmapNum</LITERAL2>
169			<LITERAL2>printNum</LITERAL2>
170			<LITERAL2>random</LITERAL2>   <!-- deprecated -->
171			<LITERAL2>removeMovieClip</LITERAL2>
172			<LITERAL2>scroll</LITERAL2>
173			<LITERAL2>setProperty</LITERAL2>
174			<LITERAL2>startDrag</LITERAL2>
175			<LITERAL2>stop</LITERAL2>
176			<LITERAL2>stopAllSounds</LITERAL2>
177			<LITERAL2>stopDrag</LITERAL2>
178			<LITERAL2>String</LITERAL2>
179			<LITERAL2>targetPath</LITERAL2>
180			<LITERAL2>tellTarget</LITERAL2>   <!-- deprecated -->
181			<LITERAL2>toggleHighQuality</LITERAL2>   <!-- deprecated -->
182			<LITERAL2>trace</LITERAL2>
183			<LITERAL2>unescape</LITERAL2>
184			<LITERAL2>unloadMovie</LITERAL2>
185			<LITERAL2>unloadMovieNum</LITERAL2>
186			<LITERAL2>updateAfterEvent</LITERAL2>
187
188			<!--ECMAScript keywords-->
189			<!-- Reserved for future use 
190				(some are already used in some Javascript Engines) 
191			-->
192			<KEYWORD1>abstract</KEYWORD1>
193			<KEYWORD3>boolean</KEYWORD3>
194			<KEYWORD3>byte</KEYWORD3>
195			<KEYWORD1>case</KEYWORD1>
196			<KEYWORD1>catch</KEYWORD1>
197			<KEYWORD3>char</KEYWORD3>
198			<KEYWORD1>class</KEYWORD1>
199			<KEYWORD1>const</KEYWORD1>
200			<KEYWORD1>debugger</KEYWORD1>
201			<KEYWORD1>default</KEYWORD1>
202
203			<KEYWORD3>double</KEYWORD3>
204			<KEYWORD1>enum</KEYWORD1>
205			<KEYWORD2>export</KEYWORD2>
206			<KEYWORD1>extends</KEYWORD1>
207			<KEYWORD1>final</KEYWORD1>
208			<KEYWORD1>finally</KEYWORD1>
209			<KEYWORD3>float</KEYWORD3>
210			<KEYWORD1>goto</KEYWORD1>
211			<KEYWORD1>implements</KEYWORD1>
212
213			<KEYWORD2>import</KEYWORD2>
214			<KEYWORD1>instanceof</KEYWORD1>
215			<KEYWORD3>int</KEYWORD3>
216			<KEYWORD1>interface</KEYWORD1>
217			<KEYWORD3>long</KEYWORD3>
218			<KEYWORD1>native</KEYWORD1>
219			<KEYWORD2>package</KEYWORD2>
220			<KEYWORD1>private</KEYWORD1>
221			<KEYWORD1>protected</KEYWORD1>
222			<KEYWORD1>public</KEYWORD1>
223
224			<KEYWORD3>short</KEYWORD3>
225			<KEYWORD1>static</KEYWORD1>
226			<LITERAL2>super</LITERAL2>
227			<KEYWORD1>switch</KEYWORD1>
228			<KEYWORD1>synchronized</KEYWORD1>
229			<KEYWORD1>throw</KEYWORD1>
230			<KEYWORD1>throws</KEYWORD1>
231			<KEYWORD1>transient</KEYWORD1>
232			<KEYWORD1>try</KEYWORD1>
233			<KEYWORD1>volatile</KEYWORD1>
234		</KEYWORDS>
235	</RULES>
236</MODE>