App-Mxpress-PDF
view release on metacpan or search on metacpan
public/javascripts/ace/mode-perl6.js view on Meta::CPAN
"perl|permutations|phaser|pick|pickpairs|pid|placeholder|plus|polar|poll|polymod|pop|pos|"+
"positional|posix|postfix|postmatch|precomp-ext|precomp-target|pred|prefix|prematch|prepend|"+
"print|printf|print-nl|print-to|private|private_method_table|proc|produce|Promise|prompt|"+
"protect|pull-one|push|push-all|push-at-least|push-exactly|push-until-lazy|put|"+
"qualifier-type|quit|r|race|radix|rand|range|raw|re|read|readchars|readonly|"+
"ready|Real|reallocate|reals|reason|rebless|receive|recv|redispatcher|redo|reduce|"+
"rel2abs|relative|release|rename|repeated|replacement|report|reserved|resolve|"+
"restore|result|resume|rethrow|reverse|right|rindex|rmdir|roles_to_compose|"+
"rolish|roll|rootdir|roots|rotate|rotor|round|roundrobin|routine-type|run|rwx|s|"+
"samecase|samemark|samewith|say|schedule-on|scheduler|scope|sec|sech|second|seek|"+
"self|send|Set|set_hidden|set_name|set_package|set_rw|set_value|SetHash|"+
"set-instruments|setup_finalization|shape|share|shell|shift|sibling|sigil|"+
"sign|signal|signals|signature|sin|sinh|sink|sink-all|skip|skip-at-least|"+
"skip-at-least-pull-one|skip-one|sleep|sleep-timer|sleep-until|Slip|slurp|"+
"slurp-rest|slurpy|snap|snapper|so|socket-host|socket-port|sort|source|"+
"source-package|spawn|SPEC|splice|split|splitdir|splitpath|sprintf|spurt|"+
"sqrt|squish|srand|stable|start|started|starts-with|status|stderr|stdout|"+
"sub_signature|subbuf|subbuf-rw|subname|subparse|subst|subst-mutate|"+
"substr|substr-eq|substr-rw|succ|sum|Supply|symlink|t|tail|take|take-rw|"+
"tan|tanh|tap|target|target-name|tc|tclc|tell|then|throttle|throw|timezone|"+
"tmpdir|to|today|toggle|to-posix|total|trailing|trans|tree|trim|trim-leading|"+
"trim-trailing|truncate|truncated-to|trusts|try_acquire|trying|twigil|type|"+
"type_captures|typename|uc|udp|uncaught_handler|unimatch|uniname|uninames|"+
"uniparse|uniprop|uniprops|unique|unival|univals|unlink|unlock|unpack|unpolar|"+
"unshift|unwrap|updir|USAGE|utc|val|value|values|VAR|variable|verbose-config|"+
"version|VMnames|volume|vow|w|wait|warn|watch|watch-path|week|weekday-of-month|"+
"week-number|week-year|WHAT|WHERE|WHEREFORE|WHICH|WHO|whole-second|WHY|"+
"wordcase|words|workaround|wrap|write|write-to|yada|year|yield|yyyy-mm-dd|"+
"z|zip|zip-latest|"+
"plan|done-testing|bail-out|todo|skip|skip-rest|diag|subtest|pass|flunk|ok|"+
"nok|cmp-ok|is-deeply|isnt|is-approx|like|unlike|use-ok|isa-ok|does-ok|"+
"can-ok|dies-ok|lives-ok|eval-dies-ok|eval-lives-ok|throws-like|fails-like|"+
"rw|required|native|repr|export|symbol"
);
var constants_ascii = ("pi|Inf|tau|time");
var ops_txt = ("eq|ne|gt|lt|le|ge|div|gcd|lcm|leg|cmp|ff|fff|"+
"x|before|after|Z|X|and|or|andthen|notandthen|orelse|xor"
);
var keywordMapper = this.createKeywordMapper({
"keyword": keywords,
"storage.type" : types,
"constant.language": constants_ascii,
"support.function": builtinFunctions,
"keyword.operator": ops_txt
}, "identifier");
var moduleName = "[a-zA-Z_][a-zA-Z_0-9:-]*\\b";
var hex = { token : "constant.numeric", regex : "0x[0-9a-fA-F]+\\b" };
var num_rat = { token : "constant.numeric", regex : "[+-.]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" };
var num_with_ = { token : "constant.numeric", regex : "(?:\\d+_?\\d+)+\\b" };
var complex_numbers = { token : "constant.numeric", regex : "\\+?\\d+i\\b" };
var booleans = { token : "constant.language.boolean", regex : "(?:True|False)\\b" };
var versions = { token : "constant.other", regex : "v[0-9](?:\\.[a-zA-Z0-9*])*\\b" };
var lang_keywords = { token : keywordMapper, regex : "[a-zA-Z][\\:a-zA-Z0-9_-]*\\b" };
var variables = { token : "variable.language", regex : "[$@%&][?*!.]?[a-zA-Z0-9_-]+\\b" };
var vars_special = { token: "variable.language", regex : "\\$[/|!]?|@\\$/" };
var ops_char = { token : "keyword.operator", regex : "=|<|>|\\+|\\*|-|/|~|%|\\?|!|\\^|\\.|\\:|\\,|"+
"»|«|\\||\\&|â|â" };
var constants_unicode = { token : "constant.language", regex : "ð|Ï|Ï|â" };
var qstrings = { token : "string.quoted.single", regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']" };
var word_quoting = { token : "string.quoted.single", regex : "[<](?:[a-zA-Z0-9 ])*[>]"};
var regexp = {
token : "string.regexp",
regex : "[m|rx]?[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)" };
this.$rules = {
"start" : [
{
token : "comment.block", // Embedded Comments - Parentheses
regex : "#[`|=]\\(.*\\)"
}, {
token : "comment.block", // Embedded Comments - Brackets
regex : "#[`|=]\\[.*\\]"
}, {
token : "comment.doc", // Multiline Comments
regex : "^=(?:begin)\\b",
next : "block_comment"
}, {
token : "string.unquoted", // q Heredocs
regex : "q[x|w]?\\:to/END/;",
next : "qheredoc"
}, {
token : "string.unquoted", // qq Heredocs
regex : "qq[x|w]?\\:to/END/;",
next : "qqheredoc"
},
regexp,
qstrings
, {
token : "string.quoted.double", // Double Quoted String
regex : '"',
next : "qqstring"
},
word_quoting
, {
token: ["keyword", "text", "variable.module"], // use - Module Names, Pragmas, etc.
regex: "(use)(\\s+)((?:"+moduleName+"\\.?)*)"
},
hex,
num_rat,
num_with_,
complex_numbers,
booleans,
versions,
lang_keywords,
variables,
vars_special,
ops_char,
constants_unicode
, {
token : "comment", // Sigle Line Comments
regex : "#.*$"
}, {
token : "lparen",
regex : "[[({]"
}, {
token : "rparen",
regex : "[\\])}]"
}, {
token : "text",
regex : "\\s+"
}
],
"qqstring" : [
{
token : "constant.language.escape",
regex : '\\\\(?:[nrtef\\\\"$]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2})'
},
variables,
vars_special
, {
token : "lparen",
regex : "{",
next : "qqinterpolation"
}, {
token : "string.quoted.double",
regex : '"',
next : "start"
}, {
defaultToken : "string.quoted.double"
}
],
"qqinterpolation" : [
hex,
num_rat,
num_with_,
complex_numbers,
booleans,
versions,
lang_keywords,
variables,
vars_special,
ops_char,
constants_unicode,
qstrings,
regexp,
{
token: "rparen",
regex: "}",
next : "qqstring"
}
],
"block_comment": [
{
token: "comment.doc",
regex: "^=end +[a-zA-Z_0-9]*",
next: "start"
},
{
defaultToken: "comment.doc"
}
],
"qheredoc": [
{
token: "string.unquoted",
regex: "END$",
next: "start"
}, {
defaultToken: "string.unquoted"
}
],
"qqheredoc": [
variables,
vars_special,
{
token : "lparen",
regex : "{",
next : "qqheredocinterpolation"
}, {
token: "string.unquoted",
regex: "END$",
next: "start"
}, {
defaultToken: "string.unquoted"
}
],
"qqheredocinterpolation" : [
hex,
num_rat,
num_with_,
complex_numbers,
booleans,
versions,
lang_keywords,
variables,
vars_special,
ops_char,
constants_unicode,
qstrings,
regexp,
{
token: "rparen",
regex: "}",
next : "qqheredoc"
}
]
};
};
oop.inherits(Perl6HighlightRules, TextHighlightRules);
exports.Perl6HighlightRules = Perl6HighlightRules;
});
define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
"use strict";
var Range = require("../range").Range;
var MatchingBraceOutdent = function() {};
(function() {
this.checkOutdent = function(line, input) {
if (! /^\s+$/.test(line))
return false;
return /^\s*\}/.test(input);
};
this.autoOutdent = function(doc, row) {
var line = doc.getLine(row);
var match = line.match(/^(\s*\})/);
if (!match) return 0;
var column = match[1].length;
var openBracePos = doc.findMatchingBracket({row: row, column: column});
if (!openBracePos || openBracePos.row == row) return 0;
var indent = this.$getIndent(doc.getLine(openBracePos.row));
doc.replace(new Range(row, 0, row, column-1), indent);
};
this.$getIndent = function(line) {
return line.match(/^\s*/)[0];
};
}).call(MatchingBraceOutdent.prototype);
exports.MatchingBraceOutdent = MatchingBraceOutdent;
});
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
"use strict";
var oop = require("../../lib/oop");
( run in 0.618 second using v1.01-cache-2.11-cpan-39bf76dae61 )