1 | 1 | simandl | <?php |
2 | | | /************************************************************************************* |
3 | | | * actionscript3.php |
4 | | | * ---------------- |
5 | | | * Author: Jordi Boggiano (j.boggiano@seld.be) |
6 | | | * Copyright: (c) 2007 Jordi Boggiano (http://www.seld.be/), Benny Baumann (http://qbnz.com/highlighter) |
7 | 3 | simandl | * Release Version: 1.0.8.3 |
8 | 1 | simandl | * Date Started: 2007/11/26 |
9 | | | * |
10 | | | * ActionScript3 language file for GeSHi. |
11 | | | * |
12 | | | * All keywords scraped from the Flex 2.0.1 Documentation |
13 | | | * |
14 | | | * The default style is based on FlexBuilder2 coloring, with the addition of class, package, method and |
15 | | | * constant names that are highlighted to help identifying problem when used on public pastebins. |
16 | | | * |
17 | | | * For styling, keywords data from 0 to 1 (accessible through .kw1, etc.) are described here : |
18 | | | * |
19 | | | * 1 : operators |
20 | | | * 2 : 'var' keyword |
21 | | | * 3 : 'function' keyword |
22 | | | * 4 : 'class' and 'package' keywords |
23 | | | * 5 : all flash.* class names plus Top Level classes, mx are excluded |
24 | | | * 6 : all flash.* package names, mx are excluded |
25 | | | * 7 : valid flash method names and properties (there is no type checks sadly, for example String().x will be highlighted as 'x' is valid, but obviously strings don't have a x property) |
26 | | | * 8 : valid flash constant names (again, no type check) |
27 | | | * |
28 | | | * |
29 | | | * CHANGES |
30 | | | * ------- |
31 | | | * 2007/12/06 (1.0.7.22) |
32 | | | * - Added the 'this' keyword (oops) |
33 | | | * |
34 | | | * TODO (updated 2007/11/30) |
35 | | | * ------------------------- |
36 | | | * |
37 | | | ************************************************************************************* |
38 | | | * |
39 | | | * This file is part of GeSHi. |
40 | | | * |
41 | | | * GeSHi is free software; you can redistribute it and/or modify |
42 | | | * it under the terms of the GNU General Public License as published by |
43 | | | * the Free Software Foundation; either version 2 of the License, or |
44 | | | * (at your option) any later version. |
45 | | | * |
46 | | | * GeSHi is distributed in the hope that it will be useful, |
47 | | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
48 | | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
49 | | | * GNU General Public License for more details. |
50 | | | * |
51 | | | * You should have received a copy of the GNU General Public License |
52 | | | * along with GeSHi; if not, write to the Free Software |
53 | | | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
54 | | | * |
55 | | | ************************************************************************************/ |
56 | | | |
57 | | | $language_data = array ( |
58 | | | 'LANG_NAME' => 'ActionScript 3', |
59 | | | 'COMMENT_SINGLE' => array(1 => '//'), |
60 | | | 'COMMENT_MULTI' => array('/*' => '*/'), |
61 | | | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
62 | | | 'QUOTEMARKS' => array("'", '"'), |
63 | | | 'ESCAPE_CHAR' => '\\', |
64 | | | 'KEYWORDS' => array( |
65 | | | 1 => array( |
66 | | | 'with', 'while', 'void', 'undefined', 'typeof', 'try', 'true', |
67 | | | 'throw', 'this', 'switch', 'super', 'set', 'return', 'public', 'protected', |
68 | | | 'private', 'null', 'new', 'is', 'internal', 'instanceof', 'in', |
69 | | | 'import', 'if', 'get', 'for', 'false', 'else', 'each', 'do', |
70 | | | 'delete', 'default', 'continue', 'catch', 'case', 'break', 'as' |
71 | | | ), |
72 | | | 2 => array( |
73 | | | 'var' |
74 | | | ), |
75 | | | 3 => array( |
76 | | | 'function' |
77 | | | ), |
78 | | | 4 => array( |
79 | | | 'class', 'package' |
80 | | | ), |
81 | | | 6 => array( |
82 | | | 'flash.xml', 'flash.utils', 'flash.ui', 'flash.text', |
83 | | | 'flash.system', 'flash.profiler', 'flash.printing', 'flash.net', |
84 | | | 'flash.media', 'flash.geom', 'flash.filters', 'flash.external', |
85 | | | 'flash.events', 'flash.errors', 'flash.display', |
86 | | | 'flash.accessibility' |
87 | | | ), |
88 | | | 7 => array( |
89 | | | 'zoom', 'year', 'y', 'xmlDecl', 'x', 'writeUnsignedInt', |
90 | | | 'writeUTFBytes', 'writeUTF', 'writeShort', 'writeObject', |
91 | | | 'writeMultiByte', 'writeInt', 'writeFloat', 'writeExternal', |
92 | | | 'writeDynamicProperty', 'writeDynamicProperties', 'writeDouble', |
93 | | | 'writeBytes', 'writeByte', 'writeBoolean', 'wordWrap', |
94 | | | 'willTrigger', 'width', 'volume', 'visible', 'videoWidth', |
95 | | | 'videoHeight', 'version', 'valueOf', 'value', 'usingTLS', |
96 | | | 'useRichTextClipboard', 'useHandCursor', 'useEchoSuppression', |
97 | | | 'useCodePage', 'url', 'uri', 'uploadCompleteData', 'upload', |
98 | | | 'updateProperties', 'updateAfterEvent', 'upState', 'unshift', |
99 | | | 'unlock', 'unload', 'union', 'unescapeMultiByte', 'unescape', |
100 | | | 'underline', 'uncompress', 'type', 'ty', 'tx', 'transparent', |
101 | | | 'translate', 'transformPoint', 'transform', 'trackAsMenu', 'track', |
102 | | | 'trace', 'totalMemory', 'totalFrames', 'topLeft', 'top', |
103 | | | 'togglePause', 'toXMLString', 'toUpperCase', 'toUTCString', |
104 | | | 'toTimeString', 'toString', 'toPrecision', 'toLowerCase', |
105 | | | 'toLocaleUpperCase', 'toLocaleTimeString', 'toLocaleString', |
106 | | | 'toLocaleLowerCase', 'toLocaleDateString', 'toFixed', |
107 | | | 'toExponential', 'toDateString', 'timezoneOffset', 'timerComplete', |
108 | | | 'timer', 'time', 'threshold', 'thickness', 'textWidth', |
109 | | | 'textSnapshot', 'textInput', 'textHeight', 'textColor', 'text', |
110 | | | 'test', 'target', 'tan', 'tabStops', 'tabIndexChange', 'tabIndex', |
111 | | | 'tabEnabledChange', 'tabEnabled', 'tabChildrenChange', |
112 | | | 'tabChildren', 'sync', 'swfVersion', 'swapChildrenAt', |
113 | | | 'swapChildren', 'subtract', 'substring', 'substr', 'styleSheet', |
114 | | | 'styleNames', 'strength', 'stopPropagation', |
115 | | | 'stopImmediatePropagation', 'stopDrag', 'stopAll', 'stop', 'status', |
116 | | | 'startDrag', 'start', 'stageY', 'stageX', 'stageWidth', |
117 | | | 'stageHeight', 'stageFocusRect', 'stage', 'sqrt', 'split', 'splice', |
118 | | | 'source', 'soundTransform', 'soundComplete', 'sortOn', 'sort', |
119 | | | 'songName', 'some', 'socketData', 'smoothing', 'slice', 'size', |
120 | | | 'sin', 'silent', 'silenceTimeout', 'silenceLevel', 'showSettings', |
121 | | | 'showRedrawRegions', 'showDefaultContextMenu', 'show', 'shortcut', |
122 | | | 'shiftKey', 'shift', 'sharpness', 'sharedEvents', 'shadowColor', |
123 | | | 'shadowAlpha', 'settings', 'setUseEchoSuppression', 'setUTCSeconds', |
124 | | | 'setUTCMonth', 'setUTCMinutes', 'setUTCMilliseconds', 'setUTCHours', |
125 | | | 'setUTCFullYear', 'setUTCDate', 'setTimeout', 'setTime', |
126 | | | 'setTextFormat', 'setStyle', 'setSilenceLevel', 'setSettings', |
127 | | | 'setSelection', 'setSelected', 'setSelectColor', 'setSeconds', |
128 | | | 'setQuality', 'setPropertyIsEnumerable', 'setProperty', 'setPixels', |
129 | | | 'setPixel32', 'setPixel', 'setNamespace', 'setName', |
130 | | | 'setMotionLevel', 'setMonth', 'setMode', 'setMinutes', |
131 | | | 'setMilliseconds', 'setLoopback', 'setLoopBack', 'setLocalName', |
132 | | | 'setKeyFrameInterval', 'setInterval', 'setHours', 'setFullYear', |
133 | | | 'setEmpty', 'setDirty', 'setDate', 'setCompositionString', |
134 | | | 'setClipboard', 'setChildren', 'setChildIndex', |
135 | | | 'setAdvancedAntiAliasingTable', 'serverString', 'separatorBefore', |
136 | | | 'sendToURL', 'send', 'selectionEndIndex', 'selectionBeginIndex', |
137 | | | 'selectable', 'select', 'seek', 'securityError', 'securityDomain', |
138 | | | 'secondsUTC', 'seconds', 'search', 'scrollV', 'scrollRect', |
139 | | | 'scrollH', 'scroll', 'screenResolutionY', 'screenResolutionX', |
140 | | | 'screenDPI', 'screenColor', 'scenes', 'scaleY', 'scaleX', |
141 | | | 'scaleMode', 'scale9Grid', 'scale', 'save', 'sandboxType', |
142 | | | 'sameDomain', 'running', 'round', 'rotation', 'rotate', 'root', |
143 | | | 'rollOver', 'rollOut', 'rightToRight', 'rightToLeft', 'rightPeak', |
144 | | | 'rightMargin', 'right', 'rewind', 'reverse', 'resume', 'restrict', |
145 | | | 'resize', 'reset', 'requestHeaders', 'replaceText', |
146 | | | 'replaceSelectedText', 'replace', 'repeatCount', 'render', |
147 | | | 'removedFromStage', 'removed', 'removeNode', 'removeNamespace', |
148 | | | 'removeEventListener', 'removeChildAt', 'removeChild', |
149 | | | 'relatedObject', 'registerFont', 'registerClassAlias', 'redOffset', |
150 | | | 'redMultiplier', 'rect', 'receiveVideo', 'receiveAudio', |
151 | | | 'readUnsignedShort', 'readUnsignedInt', 'readUnsignedByte', |
152 | | | 'readUTFBytes', 'readUTF', 'readShort', 'readObject', |
153 | | | 'readMultiByte', 'readInt', 'readFloat', 'readExternal', |
154 | | | 'readDouble', 'readBytes', 'readByte', 'readBoolean', 'ratios', |
155 | | | 'rate', 'random', 'quality', 'push', 'publish', 'proxyType', |
156 | | | 'prototype', 'propertyIsEnumerable', 'progress', |
157 | | | 'processingInstructions', 'printAsBitmap', 'print', |
158 | | | 'previousSibling', 'preventDefault', 'prevScene', 'prevFrame', |
159 | | | 'prettyPrinting', 'prettyIndent', 'preserveAlpha', 'prependChild', |
160 | | | 'prefix', 'pow', 'position', 'pop', 'polar', 'playerType', 'play', |
161 | | | 'pixelSnapping', 'pixelDissolve', 'pixelBounds', 'pixelAspectRatio', |
162 | | | 'perlinNoise', 'pause', 'parseXML', 'parseInt', 'parseFloat', |
163 | | | 'parseCSS', 'parse', 'parentNode', 'parentDomain', |
164 | | | 'parentAllowsChild', 'parent', 'parameters', 'paperWidth', |
165 | | | 'paperHeight', 'pan', 'paletteMap', 'pageWidth', 'pageHeight', |
166 | | | 'overState', 'outsideCutoff', 'os', 'orientation', 'open', |
167 | | | 'opaqueBackground', 'onPlayStatus', 'onMetaData', 'onCuePoint', |
168 | | | 'offsetPoint', 'offset', 'objectID', 'objectEncoding', 'numLock', |
169 | | | 'numLines', 'numFrames', 'numChildren', 'normalize', 'noise', |
170 | | | 'nodeValue', 'nodeType', 'nodeName', 'nodeKind', 'noAutoLabeling', |
171 | | | 'nextValue', 'nextSibling', 'nextScene', 'nextNameIndex', |
172 | | | 'nextName', 'nextFrame', 'netStatus', 'navigateToURL', |
173 | | | 'namespaceURI', 'namespaceDeclarations', 'namespace', 'names', |
174 | | | 'name', 'muted', 'multiline', 'moveTo', 'mouseY', 'mouseX', |
175 | | | 'mouseWheelEnabled', 'mouseWheel', 'mouseUp', 'mouseTarget', |
176 | | | 'mouseOver', 'mouseOut', 'mouseMove', 'mouseLeave', |
177 | | | 'mouseFocusChange', 'mouseEnabled', 'mouseDown', 'mouseChildren', |
178 | | | 'motionTimeout', 'motionLevel', 'monthUTC', 'month', |
179 | | | 'modificationDate', 'mode', 'minutesUTC', 'minutes', 'min', |
180 | | | 'millisecondsUTC', 'milliseconds', 'method', 'message', 'merge', |
181 | | | 'menuSelect', 'menuItemSelect', 'maxScrollV', 'maxScrollH', |
182 | | | 'maxLevel', 'maxChars', 'max', 'matrixY', 'matrixX', 'matrix', |
183 | | | 'match', 'mask', 'mapPoint', 'mapBitmap', 'map', 'manufacturer', |
184 | | | 'macType', 'loopback', 'loop', 'log', 'lock', 'localeCompare', |
185 | | | 'localY', 'localX', 'localToGlobal', 'localName', |
186 | | | 'localFileReadDisable', 'loaderURL', 'loaderInfo', 'loader', |
187 | | | 'loadPolicyFile', 'loadBytes', 'load', 'liveDelay', 'link', |
188 | | | 'lineTo', 'lineStyle', 'lineGradientStyle', 'level', |
189 | | | 'letterSpacing', 'length', 'leftToRight', 'leftToLeft', 'leftPeak', |
190 | | | 'leftMargin', 'left', 'leading', 'lastIndexOf', 'lastIndex', |
191 | | | 'lastChild', 'language', 'labels', 'knockout', 'keyUp', |
192 | | | 'keyLocation', 'keyFrameInterval', 'keyFocusChange', 'keyDown', |
193 | | | 'keyCode', 'kerning', 'join', 'italic', 'isXMLName', |
194 | | | 'isPrototypeOf', 'isNaN', 'isFocusInaccessible', 'isFinite', |
195 | | | 'isEmpty', 'isDefaultPrevented', 'isDebugger', 'isBuffering', |
196 | | | 'isAttribute', 'isAccessible', 'ioError', 'invert', 'invalidate', |
197 | | | 'intersects', 'intersection', 'interpolate', 'insideCutoff', |
198 | | | 'insertChildBefore', 'insertChildAfter', 'insertBefore', 'inner', |
199 | | | 'init', 'info', 'inflatePoint', 'inflate', 'indexOf', 'index', |
200 | | | 'indent', 'inScopeNamespaces', 'imeComposition', 'ime', |
201 | | | 'ignoreWhitespace', 'ignoreWhite', 'ignoreProcessingInstructions', |
202 | | | 'ignoreComments', 'ignoreCase', 'identity', 'idMap', 'id3', |
203 | | | 'httpStatus', 'htmlText', 'hoursUTC', 'hours', 'hitTestTextNearPos', |
204 | | | 'hitTestState', 'hitTestPoint', 'hitTestObject', 'hitTest', |
205 | | | 'hitArea', 'highlightColor', 'highlightAlpha', 'hideObject', |
206 | | | 'hideBuiltInItems', 'hide', 'height', 'hasVideoEncoder', 'hasTLS', |
207 | | | 'hasStreamingVideo', 'hasStreamingAudio', 'hasSimpleContent', |
208 | | | 'hasScreenPlayback', 'hasScreenBroadcast', 'hasProperty', |
209 | | | 'hasPrinting', 'hasOwnProperty', 'hasMP3', 'hasIME', 'hasGlyphs', |
210 | | | 'hasEventListener', 'hasEmbeddedVideo', 'hasDefinition', |
211 | | | 'hasComplexContent', 'hasChildNodes', 'hasAudioEncoder', 'hasAudio', |
212 | | | 'hasAccessibility', 'gridFitType', 'greenOffset', 'greenMultiplier', |
213 | | | 'graphics', 'gotoAndStop', 'gotoAndPlay', 'globalToLocal', 'global', |
214 | | | 'getUTCSeconds', 'getUTCMonth', 'getUTCMinutes', |
215 | | | 'getUTCMilliseconds', 'getUTCHours', 'getUTCFullYear', 'getUTCDay', |
216 | | | 'getUTCDate', 'getTimezoneOffset', 'getTimer', 'getTime', |
217 | | | 'getTextRunInfo', 'getTextFormat', 'getText', 'getStyle', |
218 | | | 'getStackTrace', 'getSelectedText', 'getSelected', 'getSeconds', |
219 | | | 'getRemote', 'getRect', 'getQualifiedSuperclassName', |
220 | | | 'getQualifiedClassName', 'getProperty', 'getPrefixForNamespace', |
221 | | | 'getPixels', 'getPixel32', 'getPixel', 'getParagraphLength', |
222 | | | 'getObjectsUnderPoint', 'getNamespaceForPrefix', 'getMonth', |
223 | | | 'getMinutes', 'getMilliseconds', 'getMicrophone', 'getLocal', |
224 | | | 'getLineText', 'getLineOffset', 'getLineMetrics', 'getLineLength', |
225 | | | 'getLineIndexOfChar', 'getLineIndexAtPoint', 'getImageReference', |
226 | | | 'getHours', 'getFullYear', 'getFirstCharInParagraph', |
227 | | | 'getDescendants', 'getDefinitionByName', 'getDefinition', 'getDay', |
228 | | | 'getDate', 'getColorBoundsRect', 'getClassByAlias', 'getChildIndex', |
229 | | | 'getChildByName', 'getChildAt', 'getCharIndexAtPoint', |
230 | | | 'getCharBoundaries', 'getCamera', 'getBounds', 'genre', |
231 | | | 'generateFilterRect', 'gain', 'fullYearUTC', 'fullYear', |
232 | | | 'fullScreen', 'fscommand', 'fromCharCode', 'framesLoaded', |
233 | | | 'frameRate', 'frame', 'fps', 'forwardAndBack', 'formatToString', |
234 | | | 'forceSimple', 'forEach', 'fontType', 'fontStyle', 'fontSize', |
235 | | | 'fontName', 'font', 'focusRect', 'focusOut', 'focusIn', 'focus', |
236 | | | 'flush', 'floor', 'floodFill', 'firstChild', 'findText', 'filters', |
237 | | | 'filter', 'fillRect', 'fileList', 'extension', 'extended', 'exp', |
238 | | | 'exec', 'exactSettings', 'every', 'eventPhase', 'escapeMultiByte', |
239 | | | 'escape', 'errorID', 'error', 'equals', 'enumerateFonts', |
240 | | | 'enterFrame', 'endian', 'endFill', 'encodeURIComponent', |
241 | | | 'encodeURI', 'enabled', 'embedFonts', 'elements', |
242 | | | 'dynamicPropertyWriter', 'dropTarget', 'drawRoundRect', 'drawRect', |
243 | | | 'drawEllipse', 'drawCircle', 'draw', 'download', 'downState', |
244 | | | 'doubleClickEnabled', 'doubleClick', 'dotall', 'domain', |
245 | | | 'docTypeDecl', 'doConversion', 'divisor', 'distance', 'dispose', |
246 | | | 'displayState', 'displayMode', 'displayAsPassword', 'dispatchEvent', |
247 | | | 'description', 'describeType', 'descent', 'descendants', |
248 | | | 'deltaTransformPoint', 'delta', 'deleteProperty', 'delay', |
249 | | | 'defaultTextFormat', 'defaultSettings', 'defaultObjectEncoding', |
250 | | | 'decodeURIComponent', 'decodeURI', 'decode', 'deblocking', |
251 | | | 'deactivate', 'dayUTC', 'day', 'dateUTC', 'date', 'dataFormat', |
252 | | | 'data', 'd', 'customItems', 'curveTo', 'currentTarget', |
253 | | | 'currentScene', 'currentLabels', 'currentLabel', 'currentFrame', |
254 | | | 'currentFPS', 'currentDomain', 'currentCount', 'ctrlKey', 'creator', |
255 | | | 'creationDate', 'createTextNode', 'createGradientBox', |
256 | | | 'createElement', 'createBox', 'cos', 'copyPixels', 'copyChannel', |
257 | | | 'copy', 'conversionMode', 'contextMenuOwner', 'contextMenu', |
258 | | | 'contentType', 'contentLoaderInfo', 'content', 'containsRect', |
259 | | | 'containsPoint', 'contains', 'constructor', 'connectedProxyType', |
260 | | | 'connected', 'connect', 'condenseWhite', 'concatenatedMatrix', |
261 | | | 'concatenatedColorTransform', 'concat', 'computeSpectrum', |
262 | | | 'compress', 'componentY', 'componentX', 'complete', 'compare', |
263 | | | 'comments', 'comment', 'colors', 'colorTransform', 'color', 'code', |
264 | | | 'close', 'cloneNode', 'clone', 'client', 'click', 'clearTimeout', |
265 | | | 'clearInterval', 'clear', 'clamp', 'children', 'childNodes', |
266 | | | 'childIndex', 'childAllowsParent', 'child', 'checkPolicyFile', |
267 | | | 'charCount', 'charCodeAt', 'charCode', 'charAt', 'changeList', |
268 | | | 'change', 'ceil', 'caretIndex', 'caption', 'capsLock', 'cancelable', |
269 | | | 'cancel', 'callee', 'callProperty', 'call', 'cacheAsBitmap', 'c', |
270 | | | 'bytesTotal', 'bytesLoaded', 'bytesAvailable', 'buttonMode', |
271 | | | 'buttonDown', 'bullet', 'builtInItems', 'bufferTime', |
272 | | | 'bufferLength', 'bubbles', 'browse', 'bottomScrollV', 'bottomRight', |
273 | | | 'bottom', 'borderColor', 'border', 'bold', 'blurY', 'blurX', |
274 | | | 'blueOffset', 'blueMultiplier', 'blockIndent', 'blendMode', |
275 | | | 'bitmapData', 'bias', 'beginGradientFill', 'beginFill', |
276 | | | 'beginBitmapFill', 'bandwidth', 'backgroundColor', 'background', |
277 | | | 'b', 'available', 'avHardwareDisable', 'autoSize', 'attributes', |
278 | | | 'attribute', 'attachNetStream', 'attachCamera', 'attachAudio', |
279 | | | 'atan2', 'atan', 'asyncError', 'asin', 'ascent', 'artist', |
280 | | | 'areSoundsInaccessible', 'areInaccessibleObjectsUnderPoint', |
281 | | | 'applyFilter', 'apply', 'applicationDomain', 'appendText', |
282 | | | 'appendChild', 'antiAliasType', 'angle', 'alwaysShowSelection', |
283 | | | 'altKey', 'alphas', 'alphaOffset', 'alphaMultiplier', 'alpha', |
284 | | | 'allowInsecureDomain', 'allowDomain', 'align', 'album', |
285 | | | 'addedToStage', 'added', 'addPage', 'addNamespace', 'addHeader', |
286 | | | 'addEventListener', 'addChildAt', 'addChild', 'addCallback', 'add', |
287 | | | 'activityLevel', 'activity', 'active', 'activating', 'activate', |
288 | | | 'actionScriptVersion', 'acos', 'accessibilityProperties', 'abs' |
289 | | | ), |
290 | | | 8 => array( |
291 | | | 'WRAP', 'VERTICAL', 'VARIABLES', |
292 | | | 'UTC', 'UPLOAD_COMPLETE_DATA', 'UP', 'UNLOAD', 'UNKNOWN', |
293 | | | 'UNIQUESORT', 'TOP_RIGHT', 'TOP_LEFT', 'TOP', 'TIMER_COMPLETE', |
294 | | | 'TIMER', 'TEXT_NODE', 'TEXT_INPUT', 'TEXT', 'TAB_INDEX_CHANGE', |
295 | | | 'TAB_ENABLED_CHANGE', 'TAB_CHILDREN_CHANGE', 'TAB', 'SYNC', |
296 | | | 'SUBTRACT', 'SUBPIXEL', 'STATUS', 'STANDARD', 'SQUARE', 'SQRT2', |
297 | | | 'SQRT1_2', 'SPACE', 'SOUND_COMPLETE', 'SOCKET_DATA', 'SHOW_ALL', |
298 | | | 'SHIFT', 'SETTINGS_MANAGER', 'SELECT', 'SECURITY_ERROR', 'SCROLL', |
299 | | | 'SCREEN', 'ROUND', 'ROLL_OVER', 'ROLL_OUT', 'RIGHT', 'RGB', |
300 | | | 'RETURNINDEXEDARRAY', 'RESIZE', 'REPEAT', 'RENDER', |
301 | | | 'REMOVED_FROM_STAGE', 'REMOVED', 'REMOTE', 'REGULAR', 'REFLECT', |
302 | | | 'RED', 'RADIAL', 'PROGRESS', 'PRIVACY', 'POST', 'POSITIVE_INFINITY', |
303 | | | 'PORTRAIT', 'PIXEL', 'PI', 'PENDING', 'PAGE_UP', 'PAGE_DOWN', 'PAD', |
304 | | | 'OVERLAY', 'OUTER', 'OPEN', 'NaN', 'NUM_PAD', 'NUMPAD_SUBTRACT', |
305 | | | 'NUMPAD_MULTIPLY', 'NUMPAD_ENTER', 'NUMPAD_DIVIDE', |
306 | | | 'NUMPAD_DECIMAL', 'NUMPAD_ADD', 'NUMPAD_9', 'NUMPAD_8', 'NUMPAD_7', |
307 | | | 'NUMPAD_6', 'NUMPAD_5', 'NUMPAD_4', 'NUMPAD_3', 'NUMPAD_2', |
308 | | | 'NUMPAD_1', 'NUMPAD_0', 'NUMERIC', 'NO_SCALE', 'NO_BORDER', |
309 | | | 'NORMAL', 'NONE', 'NEVER', 'NET_STATUS', 'NEGATIVE_INFINITY', |
310 | | | 'MULTIPLY', 'MOUSE_WHEEL', 'MOUSE_UP', 'MOUSE_OVER', 'MOUSE_OUT', |
311 | | | 'MOUSE_MOVE', 'MOUSE_LEAVE', 'MOUSE_FOCUS_CHANGE', 'MOUSE_DOWN', |
312 | | | 'MITER', 'MIN_VALUE', 'MICROPHONE', 'MENU_SELECT', |
313 | | | 'MENU_ITEM_SELECT', 'MEDIUM', 'MAX_VALUE', 'LOW', 'LOG2E', 'LOG10E', |
314 | | | 'LOCAL_WITH_NETWORK', 'LOCAL_WITH_FILE', 'LOCAL_TRUSTED', |
315 | | | 'LOCAL_STORAGE', 'LN2', 'LN10', 'LITTLE_ENDIAN', 'LINK', |
316 | | | 'LINEAR_RGB', 'LINEAR', 'LIGHT_COLOR', 'LIGHTEN', 'LEFT', 'LCD', |
317 | | | 'LAYER', 'LANDSCAPE', 'KOREAN', 'KEY_UP', 'KEY_FOCUS_CHANGE', |
318 | | | 'KEY_DOWN', 'JUSTIFY', 'JAPANESE_KATAKANA_HALF', |
319 | | | 'JAPANESE_KATAKANA_FULL', 'JAPANESE_HIRAGANA', 'Infinity', 'ITALIC', |
320 | | | 'IO_ERROR', 'INVERT', 'INSERT', 'INPUT', 'INNER', 'INIT', |
321 | | | 'IME_COMPOSITION', 'IGNORE', 'ID3', 'HTTP_STATUS', 'HORIZONTAL', |
322 | | | 'HOME', 'HIGH', 'HARDLIGHT', 'GREEN', 'GET', 'FULLSCREEN', 'FULL', |
323 | | | 'FOCUS_OUT', 'FOCUS_IN', 'FLUSHED', 'FLASH9', 'FLASH8', 'FLASH7', |
324 | | | 'FLASH6', 'FLASH5', 'FLASH4', 'FLASH3', 'FLASH2', 'FLASH1', 'F9', |
325 | | | 'F8', 'F7', 'F6', 'F5', 'F4', 'F3', 'F2', 'F15', 'F14', 'F13', |
326 | | | 'F12', 'F11', 'F10', 'F1', 'EXACT_FIT', 'ESCAPE', 'ERROR', 'ERASE', |
327 | | | 'ENTER_FRAME', 'ENTER', 'END', 'EMBEDDED', 'ELEMENT_NODE', 'E', |
328 | | | 'DYNAMIC', 'DOWN', 'DOUBLE_CLICK', 'DIFFERENCE', 'DEVICE', |
329 | | | 'DESCENDING', 'DELETE', 'DEFAULT', 'DEACTIVATE', 'DATA', |
330 | | | 'DARK_COLOR', 'DARKEN', 'CRT', 'CONTROL', 'CONNECT', 'COMPLETE', |
331 | | | 'COLOR', 'CLOSE', 'CLICK', 'CLAMP', 'CHINESE', 'CHANGE', 'CENTER', |
332 | | | 'CASEINSENSITIVE', 'CAPTURING_PHASE', 'CAPS_LOCK', 'CANCEL', |
333 | | | 'CAMERA', 'BUBBLING_PHASE', 'BOTTOM_RIGHT', 'BOTTOM_LEFT', 'BOTTOM', |
334 | | | 'BOLD_ITALIC', 'BOLD', 'BLUE', 'BINARY', 'BIG_ENDIAN', 'BEVEL', |
335 | | | 'BEST', 'BACKSPACE', 'AUTO', 'AT_TARGET', 'ASYNC_ERROR', 'AMF3', |
336 | | | 'AMF0', 'ALWAYS', 'ALPHANUMERIC_HALF', 'ALPHANUMERIC_FULL', 'ALPHA', |
337 | | | 'ADVANCED', 'ADDED_TO_STAGE', 'ADDED', 'ADD', 'ACTIVITY', |
338 | | | 'ACTIONSCRIPT3', 'ACTIONSCRIPT2' |
339 | | | ), |
340 | | | //FIX: Must be last in order to avoid conflicts with keywords present |
341 | | | //in other keyword groups, that might get highlighted as part of the URL. |
342 | | | //I know this is not a proper work-around, but should do just fine. |
343 | | | 5 => array( |
344 | | | 'uint', 'int', 'arguments', 'XMLSocket', 'XMLNodeType', 'XMLNode', |
345 | | | 'XMLList', 'XMLDocument', 'XML', 'Video', 'VerifyError', |
346 | | | 'URLVariables', 'URLStream', 'URLRequestMethod', 'URLRequestHeader', |
347 | | | 'URLRequest', 'URLLoaderDataFormat', 'URLLoader', 'URIError', |
348 | | | 'TypeError', 'Transform', 'TimerEvent', 'Timer', 'TextSnapshot', |
349 | | | 'TextRenderer', 'TextLineMetrics', 'TextFormatAlign', 'TextFormat', |
350 | | | 'TextFieldType', 'TextFieldAutoSize', 'TextField', 'TextEvent', |
351 | | | 'TextDisplayMode', 'TextColorType', 'System', 'SyntaxError', |
352 | | | 'SyncEvent', 'StyleSheet', 'String', 'StatusEvent', 'StaticText', |
353 | | | 'StageScaleMode', 'StageQuality', 'StageAlign', 'Stage', |
354 | | | 'StackOverflowError', 'Sprite', 'SpreadMethod', 'SoundTransform', |
355 | | | 'SoundMixer', 'SoundLoaderContext', 'SoundChannel', 'Sound', |
356 | | | 'Socket', 'SimpleButton', 'SharedObjectFlushStatus', 'SharedObject', |
357 | | | 'Shape', 'SecurityPanel', 'SecurityErrorEvent', 'SecurityError', |
358 | | | 'SecurityDomain', 'Security', 'ScriptTimeoutError', 'Scene', |
359 | | | 'SWFVersion', 'Responder', 'RegExp', 'ReferenceError', 'Rectangle', |
360 | | | 'RangeError', 'QName', 'Proxy', 'ProgressEvent', |
361 | | | 'PrintJobOrientation', 'PrintJobOptions', 'PrintJob', 'Point', |
362 | | | 'PixelSnapping', 'ObjectEncoding', 'Object', 'Number', 'NetStream', |
363 | | | 'NetStatusEvent', 'NetConnection', 'Namespace', 'MovieClip', |
364 | | | 'MouseEvent', 'Mouse', 'MorphShape', 'Microphone', 'MemoryError', |
365 | | | 'Matrix', 'Math', 'LocalConnection', 'LoaderInfo', 'LoaderContext', |
366 | | | 'Loader', 'LineScaleMode', 'KeyboardEvent', 'Keyboard', |
367 | | | 'KeyLocation', 'JointStyle', 'InvalidSWFError', |
368 | | | 'InterpolationMethod', 'InteractiveObject', 'IllegalOperationError', |
369 | | | 'IOErrorEvent', 'IOError', 'IMEEvent', 'IMEConversionMode', 'IME', |
370 | | | 'IExternalizable', 'IEventDispatcher', 'IDynamicPropertyWriter', |
371 | | | 'IDynamicPropertyOutput', 'IDataOutput', 'IDataInput', 'ID3Info', |
372 | | | 'IBitmapDrawable', 'HTTPStatusEvent', 'GridFitType', 'Graphics', |
373 | | | 'GradientType', 'GradientGlowFilter', 'GradientBevelFilter', |
374 | | | 'GlowFilter', 'Function', 'FrameLabel', 'FontType', 'FontStyle', |
375 | | | 'Font', 'FocusEvent', 'FileReferenceList', 'FileReference', |
376 | | | 'FileFilter', 'ExternalInterface', 'EventPhase', 'EventDispatcher', |
377 | | | 'Event', 'EvalError', 'ErrorEvent', 'Error', 'Endian', 'EOFError', |
378 | | | 'DropShadowFilter', 'DisplayObjectContainer', 'DisplayObject', |
379 | | | 'DisplacementMapFilterMode', 'DisplacementMapFilter', 'Dictionary', |
380 | | | 'DefinitionError', 'Date', 'DataEvent', 'ConvolutionFilter', |
381 | | | 'ContextMenuItem', 'ContextMenuEvent', 'ContextMenuBuiltInItems', |
382 | | | 'ContextMenu', 'ColorTransform', 'ColorMatrixFilter', 'Class', |
383 | | | 'CapsStyle', 'Capabilities', 'Camera', 'CSMSettings', 'ByteArray', |
384 | | | 'Boolean', 'BlurFilter', 'BlendMode', 'BitmapFilterType', |
385 | | | 'BitmapFilterQuality', 'BitmapFilter', 'BitmapDataChannel', |
386 | | | 'BitmapData', 'Bitmap', 'BevelFilter', 'AsyncErrorEvent', 'Array', |
387 | | | 'ArgumentError', 'ApplicationDomain', 'AntiAliasType', |
388 | | | 'ActivityEvent', 'ActionScriptVersion', 'AccessibilityProperties', |
389 | | | 'Accessibility', 'AVM1Movie' |
390 | | | ) |
391 | | | ), |
392 | | | 'SYMBOLS' => array( |
393 | | | '(', ')', '[', ']', '{', '}', '!', '%', '&', '*', '|', '/', '<', '>', '^', '-', '+', '~', '?', ':' |
394 | | | ), |
395 | | | 'CASE_SENSITIVE' => array( |
396 | | | GESHI_COMMENTS => false, |
397 | | | 1 => true, |
398 | | | 2 => true, |
399 | | | 3 => true, |
400 | | | 4 => true, |
401 | | | 5 => true, |
402 | | | 6 => true, |
403 | | | 7 => true, |
404 | | | 8 => true |
405 | | | ), |
406 | | | 'STYLES' => array( |
407 | | | 'KEYWORDS' => array( |
408 | | | 1 => 'color: #0033ff; font-weight: bold;', |
409 | | | 2 => 'color: #6699cc; font-weight: bold;', |
410 | | | 3 => 'color: #339966; font-weight: bold;', |
411 | | | 4 => 'color: #9900cc; font-weight: bold;', |
412 | | | 5 => 'color: #004993;', |
413 | | | 6 => 'color: #004993;', |
414 | | | 7 => 'color: #004993;', |
415 | | | 8 => 'color: #004993;' |
416 | | | ), |
417 | | | 'COMMENTS' => array( |
418 | | | 1 => 'color: #009900;', |
419 | | | 'MULTI' => 'color: #3f5fbf;' |
420 | | | ), |
421 | | | 'ESCAPE_CHAR' => array( |
422 | | | |
423 | | | ), |
424 | | | 'BRACKETS' => array( |
425 | | | |
426 | | | ), |
427 | | | 'STRINGS' => array( |
428 | | | |
429 | | | ), |
430 | | | 'NUMBERS' => array( |
431 | | | |
432 | | | ), |
433 | | | 'METHODS' => array( |
434 | | | |
435 | | | ), |
436 | | | 'SYMBOLS' => array( |
437 | | | |
438 | | | ), |
439 | | | 'REGEXPS' => array( |
440 | | | ), |
441 | | | 'SCRIPT' => array( |
442 | | | ) |
443 | | | ), |
444 | | | 'URLS' => array( |
445 | | | 1 => '', |
446 | | | 2 => '', |
447 | | | 3 => '', |
448 | | | 4 => '', |
449 | | | 5 => 'http://www.google.com/search?q={FNAMEL}%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:{FNAMEL}.html&filter=0&num=100&btnI=lucky', |
450 | | | 6 => '', |
451 | | | 7 => '', |
452 | | | 8 => '' |
453 | | | ), |
454 | | | 'OOLANG' => false,//Save some time as OO identifiers aren't used |
455 | | | 'OBJECT_SPLITTERS' => array( |
456 | | | // commented out because it's not very relevant for AS, as all properties, methods and constants are dot-accessed. |
457 | | | // I believe it's preferable to have package highlighting for example, which is not possible with this enabled. |
458 | | | // 0 => '.' |
459 | | | ), |
460 | | | 'REGEXPS' => array( |
461 | | | ), |
462 | | | 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
463 | | | 'SCRIPT_DELIMITERS' => array(), |
464 | | | 'HIGHLIGHT_STRICT_BLOCK' => array() |
465 | | | ); |
466 | | | |
467 | | | ?> |