CoreFiles by mySites.guru
ecl.min.js1 lines, 5,363 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
c4d5de89a6e90dce56254e9c0956059b
sha1
7df5c4bf5009ea7b2a3ab9688191c8bbc32d1607
sha256
135f96005ff417b6750524d8068e526517a6ac5bdca32e148bf85f27c415ca2c
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("ecl",function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t){var o=e.next();if(y[o]){var i=y[o](e,t);if(!1!==i)return i}if('"'==o||"'"==o)return t.tokenize=function(e){return function(t,r){for(var o,i=!1,a=!1;null!=(o=t.next());){if(o==e&&!i){a=!0;break}i=!i&&"\\"==o}return!a&&i||(r.tokenize=n),"string"}}(o),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(o))return l=o,null;if(/\d/.test(o))return e.eatWhile(/[\w\.]/),"number";if("/"==o){if(e.eat("*"))return t.tokenize=r,r(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(b.test(o))return e.eatWhile(b),"operator";e.eatWhile(/[\w\$_]/);var a=e.current().toLowerCase();if(c.propertyIsEnumerable(a))return m.propertyIsEnumerable(a)&&(l="newstatement"),"keyword";if(u.propertyIsEnumerable(a))return m.propertyIsEnumerable(a)&&(l="newstatement"),"variable";if(d.propertyIsEnumerable(a))return m.propertyIsEnumerable(a)&&(l="newstatement"),"variable-2";if(p.propertyIsEnumerable(a))return m.propertyIsEnumerable(a)&&(l="newstatement"),"variable-3";if(f.propertyIsEnumerable(a))return m.propertyIsEnumerable(a)&&(l="newstatement"),"builtin";for(var s=a.length-1;s>=0&&(!isNaN(a[s])||"_"==a[s]);)--s;if(s>0){var g=a.substr(0,s+1);if(p.propertyIsEnumerable(g))return m.propertyIsEnumerable(g)&&(l="newstatement"),"variable-3"}return h.propertyIsEnumerable(a)?"atom":null}function r(e,t){for(var r,o=!1;r=e.next();){if("/"==r&&o){t.tokenize=n;break}o="*"==r}return"comment"}function o(e,t,n,r,o){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=o}function i(e,t,n){return e.context=new o(e.indented,t,n,null,e.context)}function a(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}var l,s=e.indentUnit,c=t("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),u=t("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),d=t("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),p=t("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),f=t("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),m=t("catch class do else finally for if switch try while"),h=t("true false null"),y={"#":function(e,t){return!!t.startOfLine&&(e.skipToEnd(),"meta")}},b=/[+\-*&%=<>!?|\/]/;return{startState:function(e){return{tokenize:null,context:new o((e||0)-s,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;l=null;var o=(t.tokenize||n)(e,t);if("comment"==o||"meta"==o)return o;if(null==r.align&&(r.align=!0),";"!=l&&":"!=l||"statement"!=r.type)if("{"==l)i(t,e.column(),"}");else if("["==l)i(t,e.column(),"]");else if("("==l)i(t,e.column(),")");else if("}"==l){for(;"statement"==r.type;)r=a(t);for("}"==r.type&&(r=a(t));"statement"==r.type;)r=a(t)}else l==r.type?a(t):("}"==r.type||"top"==r.type||"statement"==r.type&&"newstatement"==l)&&i(t,e.column(),"statement");else a(t);return t.startOfLine=!1,o},indent:function(e,t){if(e.tokenize!=n&&null!=e.tokenize)return 0;var r=e.context,o=t&&t.charAt(0);"statement"==r.type&&"}"==o&&(r=r.prev);var i=o==r.type;return"statement"==r.type?r.indented+("{"==o?0:s):r.align?r.column+(i?0:1):r.indented+(i?0:s)},electricChars:"{}"}}),e.defineMIME("text/x-ecl","ecl")});

No other release has this exact content. See every version of this file.