12 |
- import{g as _}from"./index-63ed8a66.js";function b(u,k){for(var r=0;r<k.length;r++){const l=k[r];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in u)){const d=Object.getOwnPropertyDescriptor(l,c);d&&Object.defineProperty(u,c,d.get?d:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(u,k){ace.define("ace/mode/jexl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(r,l,c){var d=r("../lib/oop"),f=r("./text_highlight_rules").TextHighlightRules,p=function(){var m="return|var|function|and|or|not|if|for|while|do|continue|break",e="null",t="empty|size|new",n=this.createKeywordMapper({keyword:m,"constant.language":e,"support.function":t},"identifier"),i="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}||.)";this.$rules={start:[{token:"comment",regex:"\\/\\/.*$"},{token:"comment",regex:"##.*$"},{token:"comment",regex:"\\/\\*",next:"comment"},{token:["comment","text"],regex:"(#pragma)(\\s.*$)"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"string",regex:"`",push:[{token:"constant.language.escape",regex:i},{token:"string",regex:"`",next:"pop"},{token:"lparen",regex:"\\${",push:[{token:"rparen",regex:"}",next:"pop"},{include:"start"}]},{defaultToken:"string"}]},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F][0-9a-fA-F_]*|[bB][01][01_]*)[LlSsDdFfYy]?\b/},{token:"constant.numeric",regex:/[+-]?\d[\d_]*(?:(?:\.[\d_]*)?(?:[eE][+-]?[\d_]+)?)?[LlSsDdFfYy]?\b/},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"string.regexp",regex:"~/",push:[{token:"constant.language.escape",regex:"\\\\/"},{token:"string.regexp",regex:"$|/",next:"pop"},{defaultToken:"string.regexp"}]},{token:n,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"&&|\\|\\||!|&|\\||\\^|~|\\?|:|\\?\\?|==|!=|<|<=|>|>=|=~|!~|=\\^|=\\$|!\\$|\\+|\\-|\\*|%|\\/|="},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"},{token:"punctuation",regex:"[,.]"},{token:"storage.type.annotation",regex:"@[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]},this.normalizeRules()};d.inherits(p,f),l.JexlHighlightRules=p}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(r,l,c){var d=r("../../lib/oop"),f=r("../../range").Range,p=r("./fold_mode").FoldMode,m=l.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};d.inherits(m,p),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var a=this._getFoldWidgetBase(e,t,n);return!a&&this.startRegionRe.test(i)?"start":a},this.getFoldWidgetRange=function(e,t,n,i){var a=e.getLine(n);if(this.startRegionRe.test(a))return this.getCommentRegionBlock(e,a,n);var o=a.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,s);var g=e.getCommentFoldRange(n,s+o[0].length,1);return g&&!g.isMultiLine()&&(i?g=this.getSectionRange(e,n):t!="all"&&(g=null)),g}if(t!=="markbegin"){var o=a.match(this.foldingStopMarker);if(o){var s=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,s):e.getCommentFoldRange(n,s,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),a=t,s=n.length;t=t+1;for(var g=t,o=e.getLength();++t<o;){n=e.getLine(t);var x=n.search(/\S/);if(x!==-1){if(i>x)break;var h=this.getFoldWidgetRange(e,"all",t);if(h){if(h.start.row<=a)break;if(h.isMultiLine())t=h.end.row;else if(i==x)break}g=t}}return new f(a,s,g,e.getLine(g).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),a=e.getLength(),s=n,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,o=1;++n<a;){t=e.getLine(n);var x=g.exec(t);if(x&&(x[1]?o--:o++,!o))break}var h=n;if(h>s)return new f(s,i,h,t.length)}}.call(m.prototype)}),ace.define("ace/mode/jexl",["require","exports","module","ace/lib/oop","ace/mode/jexl_highlight_rules","ace/mode/text","ace/mode/folding/cstyle"],function(r,l,c){var d=r("../lib/oop"),f=r("./jexl_highlight_rules").JexlHighlightRules,p=r("./text").Mode,m=r("./folding/cstyle").FoldMode,e=function(){this.HighlightRules=f,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new m};d.inherits(e,p),function(){this.lineCommentStart=["//","##"],this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/jexl"}.call(e.prototype),l.Mode=e}),function(){ace.require(["ace/mode/jexl"],function(r){u&&(u.exports=r)})}()})(v);var R=v.exports;const F=_(R),$=b({__proto__:null,default:F},[R]);export{$ as m};
- //# sourceMappingURL=mode-jexl-24bc1f2a.js.map
|