App-Mxpress-PDF
view release on metacpan or search on metacpan
public/javascripts/ace/mode-actionscript.js view on Meta::CPAN
define("ace/mode/actionscript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var ActionScriptHighlightRules = function() {
this.$rules = { start:
[ { token: 'support.class.actionscript.2',
regex: '\\b(?:R(?:ecordset|DBMSResolver|adioButton(?:Group)?)|X(?:ML(?:Socket|Node|Connector)?|UpdateResolverDataHolder)|M(?:M(?:Save|Execute)|icrophoneMicrophone|o(?:use|vieClip(?:Loader)?)|e(?:nu(?:Bar)?|dia(?:Controller|Display|Playback...
{ token: 'support.function.actionscript.2',
regex: '\\b(?:s(?:h(?:ift|ow(?:GridLines|Menu|Border|Settings|Headers|ColumnHeaders|Today|Preferences)?|ad(?:ow|ePane))|c(?:hema|ale(?:X|Mode|Y|Content)|r(?:oll(?:Track|Drag)?|een(?:Resolution|Color|DPI)))|t(?:yleSheet|op(?:Drag|A(?:nimati...
{ token: 'support.constant.actionscript.2',
regex: '\\b(?:__proto__|__resolve|_accProps|_alpha|_changed|_currentframe|_droptarget|_flash|_focusrect|_framesloaded|_global|_height|_highquality|_level|_listeners|_lockroot|_name|_parent|_quality|_root|_rotation|_soundbuftime|_target|_to...
{ token: 'keyword.control.actionscript.2',
regex: '\\b(?:dynamic|extends|import|implements|interface|public|private|new|static|super|var|for|in|break|continue|while|do|return|if|else|case|switch)\\b' },
{ token: 'storage.type.actionscript.2',
regex: '\\b(?:Boolean|Number|String|Void)\\b' },
{ token: 'constant.language.actionscript.2',
regex: '\\b(?:null|undefined|true|false)\\b' },
{ token: 'constant.numeric.actionscript.2',
regex: '\\b(?:0(?:x|X)[0-9a-fA-F]*|(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:(?:e|E)(?:\\+|-)?[0-9]+)?)(?:L|l|UL|ul|u|U|F|f)?\\b' },
{ token: 'punctuation.definition.string.begin.actionscript.2',
regex: '"',
push:
[ { token: 'punctuation.definition.string.end.actionscript.2',
regex: '"',
next: 'pop' },
{ token: 'constant.character.escape.actionscript.2',
regex: '\\\\.' },
{ defaultToken: 'string.quoted.double.actionscript.2' } ] },
{ token: 'punctuation.definition.string.begin.actionscript.2',
regex: '\'',
push:
[ { token: 'punctuation.definition.string.end.actionscript.2',
regex: '\'',
next: 'pop' },
{ token: 'constant.character.escape.actionscript.2',
regex: '\\\\.' },
{ defaultToken: 'string.quoted.single.actionscript.2' } ] },
{ token: 'support.constant.actionscript.2',
regex: '\\b(?:BACKSPACE|CAPSLOCK|CONTROL|DELETEKEY|DOWN|END|ENTER|HOME|INSERT|LEFT|LN10|LN2|LOG10E|LOG2E|MAX_VALUE|MIN_VALUE|NEGATIVE_INFINITY|NaN|PGDN|PGUP|PI|POSITIVE_INFINITY|RIGHT|SPACE|SQRT1_2|SQRT2|UP)\\b' },
{ token: 'punctuation.definition.comment.actionscript.2',
regex: '/\\*',
push:
[ { token: 'punctuation.definition.comment.actionscript.2',
regex: '\\*/',
next: 'pop' },
{ defaultToken: 'comment.block.actionscript.2' } ] },
{ token: 'punctuation.definition.comment.actionscript.2',
regex: '//.*$',
push_:
[ { token: 'comment.line.double-slash.actionscript.2',
regex: '$',
next: 'pop' },
{ defaultToken: 'comment.line.double-slash.actionscript.2' } ] },
{ token: 'keyword.operator.actionscript.2',
regex: '\\binstanceof\\b' },
{ token: 'keyword.operator.symbolic.actionscript.2',
regex: '[-!%&*+=/?:]' },
{ token:
[ 'meta.preprocessor.actionscript.2',
'punctuation.definition.preprocessor.actionscript.2',
'meta.preprocessor.actionscript.2' ],
regex: '^([ \\t]*)(#)([a-zA-Z]+)' },
{ token:
[ 'storage.type.function.actionscript.2',
'meta.function.actionscript.2',
'entity.name.function.actionscript.2',
'meta.function.actionscript.2',
'punctuation.definition.parameters.begin.actionscript.2' ],
regex: '\\b(function)(\\s+)([a-zA-Z_]\\w*)(\\s*)(\\()',
push:
[ { token: 'punctuation.definition.parameters.end.actionscript.2',
regex: '\\)',
next: 'pop' },
{ token: 'variable.parameter.function.actionscript.2',
regex: '[^,)$]+' },
{ defaultToken: 'meta.function.actionscript.2' } ] },
{ token:
[ 'storage.type.class.actionscript.2',
'meta.class.actionscript.2',
'entity.name.type.class.actionscript.2',
'meta.class.actionscript.2',
'storage.modifier.extends.actionscript.2',
'meta.class.actionscript.2',
'entity.other.inherited-class.actionscript.2' ],
regex: '\\b(class)(\\s+)([a-zA-Z_](?:\\w|\\.)*)(?:(\\s+)(extends)(\\s+)([a-zA-Z_](?:\\w|\\.)*))?' } ] };
this.normalizeRules();
};
ActionScriptHighlightRules.metaData = { fileTypes: [ 'as' ],
keyEquivalent: '^~A',
name: 'ActionScript',
scopeName: 'source.actionscript.2' };
( run in 0.554 second using v1.01-cache-2.11-cpan-39bf76dae61 )