App-Mxpress-PDF

 view release on metacpan or  search on metacpan

public/javascripts/ace/mode-json5.js  view on Meta::CPAN

                defaultToken: "comment"
            }
        ]
    };
    
};

oop.inherits(JsonHighlightRules, TextHighlightRules);

exports.JsonHighlightRules = JsonHighlightRules;
});

define("ace/mode/json5_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/json_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var JsonHighlightRules = require("./json_highlight_rules").JsonHighlightRules;

var Json5HighlightRules = function() {
    JsonHighlightRules.call(this);

    var startRules = [{
        token : "variable",
        regex : /[a-zA-Z$_\u00a1-\uffff][\w$\u00a1-\uffff]*\s*(?=:)/
    }, {
        token : "variable",
        regex : /['](?:(?:\\.)|(?:[^'\\]))*?[']\s*(?=:)/
    }, {
        token : "constant.language.boolean",
        regex : /(?:null)\b/
    }, {
        token : "string",
        regex : /'/,
        next  : [{
            token : "constant.language.escape",
            regex : /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\/bfnrt]|$)/,
            consumeLineEnd  : true
        }, {
            token : "string",
            regex : /'|$/,
            next  : "start"
        }, {
            defaultToken : "string"
        }]
    }, {
        token : "string",
        regex : /"(?![^"]*":)/,
        next  : [{
            token : "constant.language.escape",
            regex : /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\/bfnrt]|$)/,
            consumeLineEnd  : true
        }, {
            token : "string",
            regex : /"|$/,
            next  : "start"
        }, {
            defaultToken : "string"
        }]
    }, {
        token : "constant.numeric",
        regex : /[+-]?(?:Infinity|NaN)\b/
    }];

    for (var key in this.$rules)
        this.$rules[key].unshift.apply(this.$rules[key], startRules);

    this.normalizeRules();
};

oop.inherits(Json5HighlightRules, JsonHighlightRules);

exports.Json5HighlightRules = Json5HighlightRules;
});

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");
var Range = require("../../range").Range;
var BaseFoldMode = require("./fold_mode").FoldMode;



( run in 0.741 second using v1.01-cache-2.11-cpan-ceb78f64989 )