%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/webmin/authentic-theme/unauthenticated/js/codemirror/mode/r/
Upload File :
Create Path :
Current File : //usr/share/webmin/authentic-theme/unauthenticated/js/codemirror/mode/r/r.js

!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(t){function r(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=!0;return t}function n(e,t){s=null;var r=e.next();if("#"==r)return e.skipToEnd(),"comment";if("0"==r&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==r&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==r||'"'==r)return t.tokenize=i(r),"string";if("`"==r)return e.match(/[^`]+`/),"variable-3";if("."==r&&e.match(/.[.\d]+/))return"keyword";if(/[\w\.]/.test(r)&&"_"!=r){e.eatWhile(/[\w\.]/);var n=e.current();return p.propertyIsEnumerable(n)?"atom":x.propertyIsEnumerable(n)?(b.propertyIsEnumerable(n)&&!e.match(/\s*if(\s+|$)/,!1)&&(s="block"),"keyword"):m.propertyIsEnumerable(n)?"builtin":"variable"}return"%"==r?(e.skipTo("%")&&e.next(),"operator variable-2"):"<"==r&&e.eat("-")||"<"==r&&e.match("<-")||"-"==r&&e.match(/>>?/)?"operator arrow":"="==r&&t.ctx.argList?"arg-is":k.test(r)?"$"==r?"operator dollar":(e.eatWhile(k),"operator"):/[\(\){}\[\];]/.test(r)?(s=r,";"==r?"semi":null):null}function i(e){return function(t,r){if(t.eat("\\")){var i=t.next();return"x"==i?t.match(/^[a-f0-9]{2}/i):("u"==i||"U"==i)&&t.eat("{")&&t.skipTo("}")?t.next():"u"==i?t.match(/^[a-f0-9]{4}/i):"U"==i?t.match(/^[a-f0-9]{8}/i):/[0-7]/.test(i)&&t.match(/^[0-7]{1,2}/),"string-2"}for(var a;null!=(a=t.next());){if(a==e){r.tokenize=n;break}if("\\"==a){t.backUp(1);break}}return"string"}}function a(e,t,r){e.ctx={type:t,indent:e.indent,flags:0,column:r.column(),prev:e.ctx}}function o(e,t){var r=e.ctx;e.ctx={type:r.type,indent:r.indent,flags:r.flags|t,column:r.column,prev:r.prev}}function c(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}var l=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],f=["list","quote","bquote","eval","return","call","parse","deparse"],u=["if","else","repeat","while","function","for","in","next","break"],d=["if","else","repeat","while","function","for"];e.registerHelper("hintWords","r",l.concat(f,u));var s,p=r(l),m=r(f),x=r(u),b=r(d),k=/[+\-*\/^<>=!&|~$:]/;return{startState:function(){return{tokenize:n,ctx:{type:"top",indent:-t.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&&c(t),t.indent=e.indentation()),e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"!=r&&0==(2&t.ctx.flags)&&o(t,1),";"!=s&&"{"!=s&&"}"!=s||"block"!=t.ctx.type||c(t),"{"==s?a(t,"}",e):"("==s?(a(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==s?a(t,"]",e):"block"==s?a(t,"block",e):s==t.ctx.type?c(t):"block"==t.ctx.type&&"comment"!=r&&o(t,4),t.afterIdent="variable"==r||"keyword"==r,r},indent:function(e,r){if(e.tokenize!=n)return 0;var i=r&&r.charAt(0),a=e.ctx,o=i==a.type;return 4&a.flags&&(a=a.prev),"block"==a.type?a.indent+("{"==i?0:t.indentUnit):1&a.flags?a.column+(o?0:1):a.indent+(o?0:t.indentUnit)},lineComment:"#"}}),e.defineMIME("text/x-rsrc","r")});

Zerion Mini Shell 1.0