PageRenderTime 224ms CodeModel.GetById 218ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/modes/actionscript.xml

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