12 |
- import{g as w}from"./index-63ed8a66.js";function A(v,M){for(var t=0;t<M.length;t++){const i=M[t];if(typeof i!="string"&&!Array.isArray(i)){for(const d in i)if(d!=="default"&&!(d in v)){const o=Object.getOwnPropertyDescriptor(i,d);o&&Object.defineProperty(v,d,o.get?o:{enumerable:!0,get:()=>i[d]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var S={exports:{}};(function(v,M){ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,i,d){var o=t("../lib/oop"),p=t("./text_highlight_rules").TextHighlightRules,u=i.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",g=i.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",e=function(){var $=this.createKeywordMapper({keyword:u,"support.function.builtin":g,"invalid.deprecated":"debugger"},"identifier"),r="(?:(?:[1-9]\\d*)|(?:0))",f="(?:\\.\\d+)",n="(?:\\d+)",a="(?:(?:"+n+"?"+f+")|(?:"+n+"\\.))",h="(?:(?:"+a+"|"+n+"))",s="(?:"+h+"|"+a+")",x="(?:&"+n+")",y="[a-zA-Z_][a-zA-Z0-9_]*",k="(?:"+y+"(?==))",_="(?:\\$(?:SHLVL|\\$|\\!|\\?))",R="(?:"+y+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(c,m,l){var H=c[2]=="-"?"indentedHeredoc":"heredoc",b=c.split(this.splitRegex);return l.push(H,b[4]),[{type:"constant",value:b[1]},{type:"text",value:b[2]},{type:"string",value:b[3]},{type:"support.class",value:b[4]},{type:"string",value:b[5]}]},rules:{heredoc:[{onMatch:function(c,m,l){return c===l[1]?(l.shift(),l.shift(),this.next=l[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(c,m,l){return c===l[1]?(l.shift(),l.shift(),this.next=l[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(c,m){return m[0]==="heredoc"||m[0]==="indentedHeredoc"?m[0]:c}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:_},{token:"variable",regex:k},{include:"variables"},{token:"support.function",regex:R},{token:"support.function",regex:x},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:s},{token:"constant.numeric",regex:r+"\\b"},{token:$,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};o.inherits(e,p),i.ShHighlightRules=e}),ace.define("ace/mode/makefile_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/sh_highlight_rules"],function(t,i,d){var o=t("../lib/oop"),p=t("./text_highlight_rules").TextHighlightRules,u=t("./sh_highlight_rules"),g=function(){var e=this.createKeywordMapper({keyword:u.reservedKeywords,"support.function.builtin":u.languageConstructs,"invalid.deprecated":"debugger"},"string");this.$rules={start:[{token:"string.interpolated.backtick.makefile",regex:"`",next:"shell-start"},{token:"punctuation.definition.comment.makefile",regex:/#(?=.)/,next:"comment"},{token:["keyword.control.makefile"],regex:"^(?:\\s*\\b)(\\-??include|ifeq|ifneq|ifdef|ifndef|else|endif|vpath|export|unexport|define|endef|override)(?:\\b)"},{token:["entity.name.function.makefile","text"],regex:"^([^\\t ]+(?:\\s[^\\t ]+)*:)(\\s*.*)"}],comment:[{token:"punctuation.definition.comment.makefile",regex:/.+\\/},{token:"punctuation.definition.comment.makefile",regex:".+",next:"start"}],"shell-start":[{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"string",regex:"\\w+"},{token:"string.interpolated.backtick.makefile",regex:"`",next:"start"}]}};o.inherits(g,p),i.MakefileHighlightRules=g}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(t,i,d){var o=t("../../lib/oop"),p=t("./fold_mode").FoldMode,u=t("../../range").Range,g=i.FoldMode=function(){};o.inherits(g,p),function(){this.getFoldWidgetRange=function(e,$,r){var f=this.indentationBlock(e,r);if(f)return f;var n=/\S/,a=e.getLine(r),h=a.search(n);if(!(h==-1||a[h]!="#")){for(var s=a.length,x=e.getLength(),y=r,k=r;++r<x;){a=e.getLine(r);var _=a.search(n);if(_!=-1){if(a[_]!="#")break;k=r}}if(k>y){var R=e.getLine(k).length;return new u(y,s,k,R)}}},this.getFoldWidget=function(e,$,r){var f=e.getLine(r),n=f.search(/\S/),a=e.getLine(r+1),h=e.getLine(r-1),s=h.search(/\S/),x=a.search(/\S/);if(n==-1)return e.foldWidgets[r-1]=s!=-1&&s<x?"start":"","";if(s==-1){if(n==x&&f[n]=="#"&&a[n]=="#")return e.foldWidgets[r-1]="",e.foldWidgets[r+1]="","start"}else if(s==n&&f[n]=="#"&&h[n]=="#"&&e.getLine(r-2).search(/\S/)==-1)return e.foldWidgets[r-1]="start",e.foldWidgets[r+1]="","";return s!=-1&&s<n?e.foldWidgets[r-1]="start":e.foldWidgets[r-1]="",n<x?"start":""}}.call(g.prototype)}),ace.define("ace/mode/makefile",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/makefile_highlight_rules","ace/mode/folding/coffee"],function(t,i,d){var o=t("../lib/oop"),p=t("./text").Mode,u=t("./makefile_highlight_rules").MakefileHighlightRules,g=t("./folding/coffee").FoldMode,e=function(){this.HighlightRules=u,this.foldingRules=new g,this.$behaviour=this.$defaultBehaviour};o.inherits(e,p),function(){this.lineCommentStart="#",this.$indentWithTabs=!0,this.$id="ace/mode/makefile",this.snippetFileId="ace/snippets/makefile"}.call(e.prototype),i.Mode=e}),function(){ace.require(["ace/mode/makefile"],function(t){v&&(v.exports=t)})}()})(S);var F=S.exports;const L=w(F),W=A({__proto__:null,default:L},[F]);export{W as m};
- //# sourceMappingURL=mode-makefile-61e4c2fc.js.map
|