CoreFiles by mySites.guru
groovy.min.js1 lines, 4,348 bytes, from Joomla_4.4.6-Stable-Full_Package.zip
Raw History Compare with 4.4.5
md5
3fe77d50dcd7ab188bf1ebfed310002a
sha1
66c507e8bbcf91043f1105ec868ae6491b21f7c4
sha256
087e24afd9d5d9c5374ef19a98926f25f219c5964aeb7535b5f89f03958285a6
(function(o){typeof exports=="object"&&typeof module=="object"?o(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.defineMode("groovy",function(s){function u(e){for(var n={},t=e.split(" "),i=0;i<t.length;++i)n[t[i]]=!0;return n}var g=u("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),m=u("catch class def do else enum finally for if interface switch trait try while"),z=u("return break continue"),E=u("null true false this"),r;function h(e,n){var t=e.next();if(t=='"'||t=="'")return v(t,e,n);if(/[\[\]{}\(\),;\:\.]/.test(t))return r=t,null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if(t=="/"){if(e.eat("*"))return n.tokenize.push(b),b(e,n);if(e.eat("/"))return e.skipToEnd(),"comment";if(k(n.lastToken,!1))return v(t,e,n)}if(t=="-"&&e.eat(">"))return r="->",null;if(/[+\-*&%=<>!?|\/~]/.test(t))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),t=="@")return e.eatWhile(/[\w\$_\.]/),"meta";if(n.lastToken==".")return"property";if(e.eat(":"))return r="proplabel","property";var i=e.current();return E.propertyIsEnumerable(i)?"atom":g.propertyIsEnumerable(i)?(m.propertyIsEnumerable(i)?r="newstatement":z.propertyIsEnumerable(i)&&(r="standalone"),"keyword"):"variable"}h.isBase=!0;function v(e,n,t){var i=!1;if(e!="/"&&n.eat(e))if(n.eat(e))i=!0;else return"string";function f(p,y){for(var a=!1,d,x=!i;(d=p.next())!=null;){if(d==e&&!a){if(!i)break;if(p.match(e+e)){x=!0;break}}if(e=='"'&&d=="$"&&!a){if(p.eat("{"))return y.tokenize.push(C()),"string";if(p.match(/^\w/,!1))return y.tokenize.push(B),"string"}a=!a&&d=="\\"}return x&&y.tokenize.pop(),"string"}return t.tokenize.push(f),f(n,t)}function C(){var e=1;function n(t,i){if(t.peek()=="}"){if(e--,e==0)return i.tokenize.pop(),i.tokenize[i.tokenize.length-1](t,i)}else t.peek()=="{"&&e++;return h(t,i)}return n.isBase=!0,n}function B(e,n){var t=e.match(/^(\.|[\w\$_]+)/);return t?t[0]=="."?null:"variable":(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](e,n))}function b(e,n){for(var t=!1,i;i=e.next();){if(i=="/"&&t){n.tokenize.pop();break}t=i=="*"}return"comment"}function k(e,n){return!e||e=="operator"||e=="->"||/[\.\[\{\(,;:]/.test(e)||e=="newstatement"||e=="keyword"||e=="proplabel"||e=="standalone"&&!n}function w(e,n,t,i,f){this.indented=e,this.column=n,this.type=t,this.align=i,this.prev=f}function c(e,n,t){return e.context=new w(e.indented,n,t,null,e.context)}function l(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:[h],context:new w((e||0)-s.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0,t.type=="statement"&&!k(n.lastToken,!0)&&(l(n),t=n.context)),e.eatSpace())return null;r=null;var i=n.tokenize[n.tokenize.length-1](e,n);if(i=="comment")return i;if(t.align==null&&(t.align=!0),(r==";"||r==":")&&t.type=="statement")l(n);else if(r=="->"&&t.type=="statement"&&t.prev.type=="}")l(n),n.context.align=!1;else if(r=="{")c(n,e.column(),"}");else if(r=="[")c(n,e.column(),"]");else if(r=="(")c(n,e.column(),")");else if(r=="}"){for(;t.type=="statement";)t=l(n);for(t.type=="}"&&(t=l(n));t.type=="statement";)t=l(n)}else r==t.type?l(n):(t.type=="}"||t.type=="top"||t.type=="statement"&&r=="newstatement")&&c(n,e.column(),"statement");return n.startOfLine=!1,n.lastToken=r||i,i},indent:function(e,n){if(!e.tokenize[e.tokenize.length-1].isBase)return o.Pass;var t=n&&n.charAt(0),i=e.context;i.type=="statement"&&!k(e.lastToken,!0)&&(i=i.prev);var f=t==i.type;return i.type=="statement"?i.indented+(t=="{"?0:s.indentUnit):i.align?i.column+(f?0:1):i.indented+(f?0:s.indentUnit)},electricChars:"{}",closeBrackets:{triples:`'"`},fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),o.defineMIME("text/x-groovy","groovy")});

The same content is in 28 releases, Joomla 4.4.1-rc1 to 4.4.14. See them all, or every version of this file.