CoreFiles by mySites.guru
r.min.js1 lines, 3,072 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
5e3c19a5cdd1532521a3fe610393718a
sha1
70b6b06ca6a55200f53a46e1baca62a4365d561f
sha256
de8c1cb714f22cc46421ffd1d98847c327d5087de5a810a6244d96e5079afec7
!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.registerHelper("wordChars","r",/[\w.]/),e.defineMode("r",function(e){function t(e){for(var t=e.split(" "),n={},r=0;r<t.length;++r)n[t[r]]=!0;return n}var n,r=t("NULL NA Inf NaN NA_integer_ NA_real_ NA_complex_ NA_character_"),i=t("list quote bquote eval return call parse deparse"),a=t("if else repeat while function for in next break"),o=t("if else repeat while function for"),c=/[+\-*\/^<>=!&|~$:]/;function l(e,t){n=null;var f,u=e.next();if("#"==u)return e.skipToEnd(),"comment";if("0"==u&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==u&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(u))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==u||'"'==u)return t.tokenize=(f=u,function(e,t){if(e.eat("\\")){var n=e.next();return"x"==n?e.match(/^[a-f0-9]{2}/i):("u"==n||"U"==n)&&e.eat("{")&&e.skipTo("}")?e.next():"u"==n?e.match(/^[a-f0-9]{4}/i):"U"==n?e.match(/^[a-f0-9]{8}/i):/[0-7]/.test(n)&&e.match(/^[0-7]{1,2}/),"string-2"}for(var r;null!=(r=e.next());){if(r==f){t.tokenize=l;break}if("\\"==r){e.backUp(1);break}}return"string"}),"string";if("`"==u)return e.match(/[^`]+`/),"variable-3";if("."==u&&e.match(/.[.\d]+/))return"keyword";if(/[\w\.]/.test(u)&&"_"!=u){e.eatWhile(/[\w\.]/);var d=e.current();return r.propertyIsEnumerable(d)?"atom":a.propertyIsEnumerable(d)?(o.propertyIsEnumerable(d)&&!e.match(/\s*if(\s+|$)/,!1)&&(n="block"),"keyword"):i.propertyIsEnumerable(d)?"builtin":"variable"}return"%"==u?(e.skipTo("%")&&e.next(),"operator variable-2"):"<"==u&&e.eat("-")||"<"==u&&e.match("<-")||"-"==u&&e.match(/>>?/)?"operator arrow":"="==u&&t.ctx.argList?"arg-is":c.test(u)?"$"==u?"operator dollar":(e.eatWhile(c),"operator"):/[\(\){}\[\];]/.test(u)?(n=u,";"==u?"semi":null):null}function f(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function u(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function d(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:l,ctx:{type:"top",indent:-e.indentUnit,flags:2},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(0==(3&t.ctx.flags)&&(t.ctx.flags|=2),4&t.ctx.flags&&d(t),t.indent=e.indentation()),e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"!=r&&0==(2&t.ctx.flags)&&u(t,1),";"!=n&&"{"!=n&&"}"!=n||"block"!=t.ctx.type||d(t),"{"==n?f(t,"}",e):"("==n?(f(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==n?f(t,"]",e):"block"==n?f(t,"block",e):n==t.ctx.type?d(t):"block"==t.ctx.type&&"comment"!=r&&u(t,4),t.afterIdent="variable"==r||"keyword"==r,r},indent:function(t,n){if(t.tokenize!=l)return 0;var r=n&&n.charAt(0),i=t.ctx,a=r==i.type;return 4&i.flags&&(i=i.prev),"block"==i.type?i.indent+("{"==r?0:e.indentUnit):1&i.flags?i.column+(a?0:1):i.indent+(a?0:e.indentUnit)},lineComment:"#"}}),e.defineMIME("text/x-rsrc","r")});

The same content is in 8 releases, Joomla 4.0.0-alpha3 to 4.0.0-alpha11. See them all, or every version of this file.