1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- define("ace/mode/csp_highlight_rules",["ace_require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(ace_require, exports, module) {
- "use strict";
- var oop = ace_require("../lib/oop");
- var TextHighlightRules = ace_require("./text_highlight_rules").TextHighlightRules;
- var CspHighlightRules = function() {
- var keywordMapper = this.createKeywordMapper({
- "constant.language": "child-src|connect-src|default-src|font-src|frame-src|img-src|manifest-src|media-src|object-src"
- + "|script-src|style-src|worker-src|base-uri|plugin-types|sandbox|disown-opener|form-action|frame-ancestors|report-uri"
- + "|report-to|upgrade-insecure-requests|block-all-mixed-content|ace_require-sri-for|reflected-xss|referrer|policy-uri",
- "variable": "'none'|'self'|'unsafe-inline'|'unsafe-eval'|'strict-dynamic'|'unsafe-hashed-attributes'"
- }, "identifier", true);
- this.$rules = {
- start: [{
- token: "string.link",
- regex: /https?:[^;\s]*/
- }, {
- token: "operator.punctuation",
- regex: /;/
- }, {
- token: keywordMapper,
- regex: /[^\s;]+/
- }]
- };
- };
- oop.inherits(CspHighlightRules, TextHighlightRules);
- exports.CspHighlightRules = CspHighlightRules;
- });
- define("ace/mode/csp",["ace_require","exports","module","ace/mode/text","ace/mode/csp_highlight_rules","ace/lib/oop"], function(ace_require, exports, module) {
- "use strict";
- var TextMode = ace_require("./text").Mode;
- var CspHighlightRules = ace_require("./csp_highlight_rules").CspHighlightRules;
- var oop = ace_require("../lib/oop");
- var Mode = function() {
- this.HighlightRules = CspHighlightRules;
- };
- oop.inherits(Mode, TextMode);
- (function() {
- this.$id = "ace/mode/csp";
- }).call(Mode.prototype);
- exports.Mode = Mode;
- }); (function() {
- window.ace_require(["ace/mode/csp"], function(m) {
- if (typeof module == "object" && typeof exports == "object" && module) {
- module.exports = m;
- }
- });
- })();
-
|