1 |
- import{g as R}from"./index-d7fba904.js";function M(d,x){for(var n=0;n<x.length;n++){const i=x[n];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in d)){const r=Object.getOwnPropertyDescriptor(i,l);r&&Object.defineProperty(d,l,r.get?r:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var k={exports:{}};(function(d,x){ace.define("ace/mode/pascal_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,i,l){var r=n("../lib/oop"),g=n("./text_highlight_rules").TextHighlightRules,u=function(){var s=this.createKeywordMapper({"keyword.control":"absolute|abstract|all|and|and_then|array|as|asm|attribute|begin|bindable|case|class|const|constructor|destructor|div|do|do|else|end|except|export|exports|external|far|file|finalization|finally|for|forward|goto|if|implementation|import|in|inherited|initialization|interface|interrupt|is|label|library|mod|module|name|near|nil|not|object|of|only|operator|or|or_else|otherwise|packed|pow|private|program|property|protected|public|published|qualified|record|repeat|resident|restricted|segment|set|shl|shr|then|to|try|type|unit|until|uses|value|var|view|virtual|while|with|xor"},"identifier",!0);this.$rules={start:[{caseInsensitive:!0,token:["variable","text","storage.type.prototype","entity.name.function.prototype"],regex:"\\b(function|procedure)(\\s+)(\\w+)(\\.\\w+)?(?=(?:\\(.*?\\))?;\\s*(?:attribute|forward|external))"},{caseInsensitive:!0,token:["variable","text","storage.type.function","entity.name.function"],regex:"\\b(function|procedure)(\\s+)(\\w+)(\\.\\w+)?"},{caseInsensitive:!0,token:s,regex:/\b[a-z_]+\b/},{token:"constant.numeric",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|ll|LL|ull|ULL)?\\b"},{token:"punctuation.definition.comment",regex:"--.*$"},{token:"punctuation.definition.comment",regex:"//.*$"},{token:"punctuation.definition.comment",regex:"\\(\\*",push:[{token:"punctuation.definition.comment",regex:"\\*\\)",next:"pop"},{defaultToken:"comment.block.one"}]},{token:"punctuation.definition.comment",regex:"\\{",push:[{token:"punctuation.definition.comment",regex:"\\}",next:"pop"},{defaultToken:"comment.block.two"}]},{token:"punctuation.definition.string.begin",regex:'"',push:[{token:"constant.character.escape",regex:"\\\\."},{token:"punctuation.definition.string.end",regex:'"',next:"pop"},{defaultToken:"string.quoted.double"}]},{token:"punctuation.definition.string.begin",regex:"'",push:[{token:"constant.character.escape.apostrophe",regex:"''"},{token:"punctuation.definition.string.end",regex:"'",next:"pop"},{defaultToken:"string.quoted.single"}]},{token:"keyword.operator",regex:"[+\\-;,/*%]|:=|="}]},this.normalizeRules()};r.inherits(u,g),i.PascalHighlightRules=u}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(n,i,l){var r=n("../../lib/oop"),g=n("./fold_mode").FoldMode,u=n("../../range").Range,s=i.FoldMode=function(){};r.inherits(s,g),function(){this.getFoldWidgetRange=function(e,_,t){var f=this.indentationBlock(e,t);if(f)return f;var o=/\S/,a=e.getLine(t),p=a.search(o);if(!(p==-1||a[p]!="#")){for(var c=a.length,h=e.getLength(),v=t,m=t;++t<h;){a=e.getLine(t);var b=a.search(o);if(b!=-1){if(a[b]!="#")break;m=t}}if(m>v){var L=e.getLine(m).length;return new u(v,c,m,L)}}},this.getFoldWidget=function(e,_,t){var f=e.getLine(t),o=f.search(/\S/),a=e.getLine(t+1),p=e.getLine(t-1),c=p.search(/\S/),h=a.search(/\S/);if(o==-1)return e.foldWidgets[t-1]=c!=-1&&c<h?"start":"","";if(c==-1){if(o==h&&f[o]=="#"&&a[o]=="#")return e.foldWidgets[t-1]="",e.foldWidgets[t+1]="","start"}else if(c==o&&f[o]=="#"&&p[o]=="#"&&e.getLine(t-2).search(/\S/)==-1)return e.foldWidgets[t-1]="start",e.foldWidgets[t+1]="","";return c!=-1&&c<o?e.foldWidgets[t-1]="start":e.foldWidgets[t-1]="",o<h?"start":""}}.call(s.prototype)}),ace.define("ace/mode/pascal",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/pascal_highlight_rules","ace/mode/folding/coffee"],function(n,i,l){var r=n("../lib/oop"),g=n("./text").Mode,u=n("./pascal_highlight_rules").PascalHighlightRules,s=n("./folding/coffee").FoldMode,e=function(){this.HighlightRules=u,this.foldingRules=new s,this.$behaviour=this.$defaultBehaviour};r.inherits(e,g),function(){this.lineCommentStart=["--","//"],this.blockComment=[{start:"(*",end:"*)"},{start:"{",end:"}"}],this.$id="ace/mode/pascal"}.call(e.prototype),i.Mode=e}),function(){ace.require(["ace/mode/pascal"],function(n){d&&(d.exports=n)})}()})(k);var y=k.exports;const F=R(y),S=M({__proto__:null,default:F},[y]);export{S as m};
|