...
1<lexer>
2 <config>
3 <name>ActionScript</name>
4 <alias>as</alias>
5 <alias>actionscript</alias>
6 <filename>*.as</filename>
7 <mime_type>application/x-actionscript</mime_type>
8 <mime_type>text/x-actionscript</mime_type>
9 <mime_type>text/actionscript</mime_type>
10 <dot_all>true</dot_all>
11 <not_multiline>true</not_multiline>
12 </config>
13 <rules>
14 <state name="root">
15 <rule pattern="\s+">
16 <token type="Text"/>
17 </rule>
18 <rule pattern="//.*?\n">
19 <token type="CommentSingle"/>
20 </rule>
21 <rule pattern="/\*.*?\*/">
22 <token type="CommentMultiline"/>
23 </rule>
24 <rule pattern="/(\\\\|\\/|[^/\n])*/[gim]*">
25 <token type="LiteralStringRegex"/>
26 </rule>
27 <rule pattern="[~^*!%&<>|+=:;,/?\\-]+">
28 <token type="Operator"/>
29 </rule>
30 <rule pattern="[{}\[\]();.]+">
31 <token type="Punctuation"/>
32 </rule>
33 <rule pattern="(instanceof|arguments|continue|default|typeof|switch|return|catch|break|while|throw|each|this|with|else|case|var|new|for|try|if|do|in)\b">
34 <token type="Keyword"/>
35 </rule>
36 <rule pattern="(implements|protected|namespace|interface|intrinsic|override|function|internal|private|package|extends|dynamic|import|native|return|public|static|class|const|super|final|get|set)\b">
37 <token type="KeywordDeclaration"/>
38 </rule>
39 <rule pattern="(true|false|null|NaN|Infinity|-Infinity|undefined|Void)\b">
40 <token type="KeywordConstant"/>
41 </rule>
42 <rule pattern="(IDynamicPropertyOutputIDynamicPropertyWriter|DisplacmentMapFilterMode|AccessibilityProperties|ContextMenuBuiltInItems|SharedObjectFlushStatus|DisplayObjectContainer|IllegalOperationError|DisplacmentMapFilter|InterpolationMethod|URLLoaderDataFormat|PrintJobOrientation|ActionScriptVersion|BitmapFilterQuality|GradientBevelFilter|GradientGlowFilter|DeleteObjectSample|StackOverflowError|SoundLoaderContext|ScriptTimeoutError|SecurityErrorEvent|InteractiveObject|StageDisplayState|FileReferenceList|TextFieldAutoSize|ApplicationDomain|BitmapDataChannel|ColorMatrixFilter|ExternalInterface|IMEConversionMode|DropShadowFilter|URLRequestHeader|ContextMenuEvent|ConvultionFilter|URLRequestMethod|BitmapFilterType|IEventDispatcher|ContextMenuItem|LocalConnection|InvalidSWFError|AsyncErrorEvent|MovieClipLoader|IBitmapDrawable|PrintJobOptions|EventDispatcher|NewObjectSample|HTTPStatusEvent|TextFormatAlign|IExternalizable|FullScreenEvent|DefinitionError|TextLineMetrics|NetStatusEvent|ColorTransform|ObjectEncoding|SecurityDomain|StageScaleMode|FocusDirection|ReferenceError|SoundTransform|KeyboardEvent|DisplayObject|PixelSnapping|LoaderContext|NetConnection|SecurityPanel|SecurityError|FileReference|AsBroadcaster|LineScaleMode|AntiAliasType|Accessibility|TextFieldType|URLVariabeles|ActivityEvent|ProgressEvent|TextColorType|StageQuality|TextSnapshot|Capabilities|BitmapFilter|SpreadMethod|GradientType|TextRenderer|SoundChannel|SharedObject|IOErrorEvent|SimpleButton|ContextMenu|InvokeEvent|CSMSettings|SyntaxError|StatusEvent|KeyLocation|IDataOutput|VerifyError|XMLDocument|XMLNodeType|MemoryError|GridFitType|BevelFilter|ErrorEvent|FrameLabel|GlowFilter|LoaderInfo|Microphone|MorphShape|BlurFilter|MouseEvent|FocusEvent|SoundMixer|FileFilter|TimerEvent|JointStyle|EventPhase|StageAlign|Dictionary|URLRequest|StyleSheet|SWFVersion|IDataInput|StaticText|RangeError|BitmapData|TextFormat|StackFrame|Namespace|SyncEvent|Rectangle|URLLoader|TypeError|Responder|NetStream|BlendMode|CapsStyle|DataEvent|ByteArray|MovieClip|Transform|TextField|Selection|AVM1Movie|XMLSocket|URLStream|FontStyle|EvalError|FontType|LoadVars|Graphics|Security|IMEEvent|URIError|Keyboard|Function|EOFError|PrintJob|IOError|XMLList|Boolean|ID3Info|XMLNode|Bitmap|String|RegExp|Sample|Object|Sprite|System|Endian|Matrix|Camera|Locale|Number|Loader|Socket|QName|Class|Timer|Sound|Shape|XMLUI|Mouse|Scene|Stage|Color|Point|Video|Error|Event|Proxy|Array|Date|uint|Math|Font|int|Key|IME|XML)\b">
43 <token type="NameBuiltin"/>
44 </rule>
45 <rule pattern="(decodeURIComponent|updateAfterEvent|clearInterval|setInterval|getVersion|parseFloat|fscommand|isXMLName|encodeURI|decodeURI|getTimer|unescape|isFinite|parseInt|getURL|escape|trace|isNaN|eval)\b">
46 <token type="NameFunction"/>
47 </rule>
48 <rule pattern="[$a-zA-Z_]\w*">
49 <token type="NameOther"/>
50 </rule>
51 <rule pattern="[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?">
52 <token type="LiteralNumberFloat"/>
53 </rule>
54 <rule pattern="0x[0-9a-f]+">
55 <token type="LiteralNumberHex"/>
56 </rule>
57 <rule pattern="[0-9]+">
58 <token type="LiteralNumberInteger"/>
59 </rule>
60 <rule pattern=""(\\\\|\\"|[^"])*"">
61 <token type="LiteralStringDouble"/>
62 </rule>
63 <rule pattern="'(\\\\|\\'|[^'])*'">
64 <token type="LiteralStringSingle"/>
65 </rule>
66 </state>
67 </rules>
68</lexer>
View as plain text