mode-plsql-c5a905dc.js 6.2 KB

1
  1. import{g as k}from"./index-d7fba904.js";function y(p,_){for(var o=0;o<_.length;o++){const i=_[o];if(typeof i!="string"&&!Array.isArray(i)){for(const g in i)if(g!=="default"&&!(g in p)){const s=Object.getOwnPropertyDescriptor(i,g);s&&Object.defineProperty(p,g,s.get?s:{enumerable:!0,get:()=>i[g]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}};(function(p,_){ace.define("ace/mode/plsql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(o,i,g){var s=o("../lib/oop"),h=o("./text_highlight_rules").TextHighlightRules,u=function(){var f="all|alter|and|any|array|arrow|as|asc|at|begin|between|by|case|check|clusters|cluster|colauth|columns|compress|connect|crash|create|cross|current|database|declare|default|delete|desc|distinct|drop|else|end|exception|exclusive|exists|fetch|form|for|foreign|from|goto|grant|group|having|identified|if|in|inner|indexes|index|insert|intersect|into|is|join|key|left|like|lock|minus|mode|natural|nocompress|not|nowait|null|of|on|option|or|order,overlaps|outer|primary|prior|procedure|public|range|record|references|resource|revoke|right|select|share|size|sql|start|subtype|tabauth|table|then|to|type|union|unique|update|use|values|view|views|when|where|with",e="true|false",t="abs|acos|add_months|ascii|asciistr|asin|atan|atan2|avg|bfilename|bin_to_num|bitand|cardinality|case|cast|ceil|chartorowid|chr|coalesce|compose|concat|convert|corr|cos|cosh|count|covar_pop|covar_samp|cume_dist|current_date|current_timestamp|dbtimezone|decode|decompose|dense_rank|dump|empty_blob|empty_clob|exp|extract|first_value|floor|from_tz|greatest|group_id|hextoraw|initcap|instr|instr2|instr4|instrb|instrc|lag|last_day|last_value|lead|least|length|length2|length4|lengthb|lengthc|listagg|ln|lnnvl|localtimestamp|log|lower|lpad|ltrim|max|median|min|mod|months_between|nanvl|nchr|new_time|next_day|nth_value|nullif|numtodsinterval|numtoyminterval|nvl|nvl2|power|rank|rawtohex|regexp_count|regexp_instr|regexp_replace|regexp_substr|remainder|replace|round|rownum|rpad|rtrim|sessiontimezone|sign|sin|sinh|soundex|sqrt|stddev|substr|sum|sys_context|sysdate|systimestamp|tan|tanh|to_char|to_clob|to_date|to_dsinterval|to_lob|to_multi_byte|to_nclob|to_number|to_single_byte|to_timestamp|to_timestamp_tz|to_yminterval|translate|trim|trunc|tz_offset|uid|upper|user|userenv|var_pop|var_samp|variance|vsize",r="char|nchar|nvarchar2|varchar2|long|raw|number|numeric|float|dec|decimal|integer|int|smallint|real|double|precision|date|timestamp|interval|year|day|bfile|blob|clob|nclob|rowid|urowid",a=this.createKeywordMapper({"support.function":t,keyword:f,"constant.language":e,"storage.type":r},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:a,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};s.inherits(u,h),i.plsqlHighlightRules=u}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(o,i,g){var s=o("../../lib/oop"),h=o("../../range").Range,u=o("./fold_mode").FoldMode,f=i.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};s.inherits(f,u),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,r){var a=e.getLine(r);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(e,t,r);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(e,t,r,a){var l=e.getLine(r);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(e,l,r);var n=l.match(this.foldingStartMarker);if(n){var d=n.index;if(n[1])return this.openingBracketBlock(e,n[1],r,d);var c=e.getCommentFoldRange(r,d+n[0].length,1);return c&&!c.isMultiLine()&&(a?c=this.getSectionRange(e,r):t!="all"&&(c=null)),c}if(t!=="markbegin"){var n=l.match(this.foldingStopMarker);if(n){var d=n.index+n[0].length;return n[1]?this.closingBracketBlock(e,n[1],r,d):e.getCommentFoldRange(r,d,-1)}}},this.getSectionRange=function(e,t){var r=e.getLine(t),a=r.search(/\S/),l=t,d=r.length;t=t+1;for(var c=t,n=e.getLength();++t<n;){r=e.getLine(t);var v=r.search(/\S/);if(v!==-1){if(a>v)break;var m=this.getFoldWidgetRange(e,"all",t);if(m){if(m.start.row<=l)break;if(m.isMultiLine())t=m.end.row;else if(a==v)break}c=t}}return new h(l,d,c,e.getLine(c).length)},this.getCommentRegionBlock=function(e,t,r){for(var a=t.search(/\s*$/),l=e.getLength(),d=r,c=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,n=1;++r<l;){t=e.getLine(r);var v=c.exec(t);if(v&&(v[1]?n--:n++,!n))break}var m=r;if(m>d)return new h(d,a,m,t.length)}}.call(f.prototype)}),ace.define("ace/mode/folding/sql",["require","exports","module","ace/lib/oop","ace/mode/folding/cstyle"],function(o,i,g){var s=o("../../lib/oop"),h=o("./cstyle").FoldMode,u=i.FoldMode=function(){};s.inherits(u,h),function(){}.call(u.prototype)}),ace.define("ace/mode/plsql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/plsql_highlight_rules","ace/mode/folding/sql"],function(o,i,g){var s=o("../lib/oop"),h=o("./text").Mode,u=o("./plsql_highlight_rules").plsqlHighlightRules,f=o("./folding/sql").FoldMode,e=function(){this.HighlightRules=u,this.foldingRules=new f};s.inherits(e,h),function(){this.lineCommentStart="--",this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/plsql"}.call(e.prototype),i.Mode=e}),function(){ace.require(["ace/mode/plsql"],function(o){p&&(p.exports=o)})}()})(b);var x=b.exports;const R=k(x),w=y({__proto__:null,default:R},[x]);export{w as m};