mode-ini-f9dc40f0.js 3.2 KB

1
  1. import{g as y}from"./index-15e3682d.js";function R(r,f){for(var e=0;e<f.length;e++){const i=f[e];if(typeof i!="string"&&!Array.isArray(i)){for(const t in i)if(t!=="default"&&!(t in r)){const n=Object.getOwnPropertyDescriptor(i,t);n&&Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>i[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(r,f){ace.define("ace/mode/ini_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,t){var n=e("../lib/oop"),g=e("./text_highlight_rules").TextHighlightRules,l="\\\\(?:[\\\\0abtrn;#=:]|x[a-fA-F\\d]{4})",o=function(){this.$rules={start:[{token:"punctuation.definition.comment.ini",regex:"#.*",push_:[{token:"comment.line.number-sign.ini",regex:"$|^",next:"pop"},{defaultToken:"comment.line.number-sign.ini"}]},{token:"punctuation.definition.comment.ini",regex:";.*",push_:[{token:"comment.line.semicolon.ini",regex:"$|^",next:"pop"},{defaultToken:"comment.line.semicolon.ini"}]},{token:["keyword.other.definition.ini","text","punctuation.separator.key-value.ini"],regex:"\\b([a-zA-Z0-9_.-]+)\\b(\\s*)(=)"},{token:["punctuation.definition.entity.ini","constant.section.group-title.ini","punctuation.definition.entity.ini"],regex:"^(\\[)(.*?)(\\])"},{token:"punctuation.definition.string.begin.ini",regex:"'",push:[{token:"punctuation.definition.string.end.ini",regex:"'",next:"pop"},{token:"constant.language.escape",regex:l},{defaultToken:"string.quoted.single.ini"}]},{token:"punctuation.definition.string.begin.ini",regex:'"',push:[{token:"constant.language.escape",regex:l},{token:"punctuation.definition.string.end.ini",regex:'"',next:"pop"},{defaultToken:"string.quoted.double.ini"}]}]},this.normalizeRules()};o.metaData={fileTypes:["ini","conf"],keyEquivalent:"^~I",name:"Ini",scopeName:"source.ini"},n.inherits(o,g),i.IniHighlightRules=o}),ace.define("ace/mode/folding/ini",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,t){var n=e("../../lib/oop"),g=e("../../range").Range,l=e("./fold_mode").FoldMode,o=i.FoldMode=function(){};n.inherits(o,l),function(){this.foldingStartMarker=/^\s*\[([^\])]*)]\s*(?:$|[;#])/,this.getFoldWidgetRange=function(a,I,u){var p=this.foldingStartMarker,d=a.getLine(u),s=d.match(p);if(s){for(var v=s[1]+".",k=d.length,b=a.getLength(),h=u,c=u;++u<b;)if(d=a.getLine(u),!/^\s*$/.test(d)){if(s=d.match(p),s&&s[1].lastIndexOf(v,0)!==0)break;c=u}if(c>h){var _=a.getLine(c).length;return new g(h,k,c,_)}}}}.call(o.prototype)}),ace.define("ace/mode/ini",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ini_highlight_rules","ace/mode/folding/ini"],function(e,i,t){var n=e("../lib/oop"),g=e("./text").Mode,l=e("./ini_highlight_rules").IniHighlightRules,o=e("./folding/ini").FoldMode,a=function(){this.HighlightRules=l,this.foldingRules=new o,this.$behaviour=this.$defaultBehaviour};n.inherits(a,g),function(){this.lineCommentStart=";",this.blockComment=null,this.$id="ace/mode/ini"}.call(a.prototype),i.Mode=a}),function(){ace.require(["ace/mode/ini"],function(e){r&&(r.exports=e)})}()})(m);var x=m.exports;const M=y(x),F=R({__proto__:null,default:M},[x]);export{F as m};