{"size": 5929, "ext": "js", "max_stars_repo_path": "html/webmin/authentic-theme/unauthenticated/js/codemirror/mode/julia/julia.js", "max_stars_repo_name": "utmsandeep/Hotel-CRM", "max_stars_repo_stars_event_min_datetime": "2021-03-01T12:06:31.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-01T12:06:31.000Z", "max_issues_repo_path": "authentic-theme/unauthenticated/js/codemirror/mode/julia/julia.js", "max_issues_repo_name": "hackxk/test", "max_issues_repo_issues_event_min_datetime": "2020-04-30T14:00:11.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-10T23:28:17.000Z", "max_forks_repo_path": "html/webmin/authentic-theme/unauthenticated/js/codemirror/mode/julia/julia.js", "max_forks_repo_name": "utmsandeep/Hotel-CRM", "max_forks_repo_forks_event_min_datetime": "2020-11-04T06:21:49.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-06T11:02:20.000Z"}
{"max_stars_count": 1, "max_issues_count": 3, "max_forks_count": 2, "avg_line_length": 5929.0, "max_line_length": 5929, "alphanum_fraction": 0.5737898465}
!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("julia",function(e,t){function n(e,t){return void 0===t&&(t="\\b"),new RegExp("^(("+e.join(")|(")+"))"+t)}function r(e){return i(e,"[")}function i(e,t){var n=a(e),r=a(e,1);return void 0===t&&(t="("),n===t||r===t&&"for"===n}function a(e,t){return void 0===t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function o(e,t){if(e.match(/^#=/,!1))return t.tokenize=s,t.tokenize(e,t);var n=t.leavingExpr;if(e.sol()&&(n=!1),t.leavingExpr=!1,n&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var o=e.peek();if("#"===o)return e.skipToEnd(),"comment";"["===o&&t.scopes.push("["),"("===o&&t.scopes.push("(");var d=a(t);if(r(t)&&"]"===o&&("for"===d&&t.scopes.pop(),t.scopes.pop(),t.leavingExpr=!0),i(t)&&")"===o&&("for"===d&&t.scopes.pop(),t.scopes.pop(),t.leavingExpr=!0),r(t)){if("end"==t.lastToken&&e.match(/^:/))return"operator";if(e.match(/^end/))return"number"}var A;if((A=e.match(v,!1))&&t.scopes.push(A[0]),e.match(k,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=u,t.tokenize(e,t);if(!n&&e.match(x)||e.match(/:([<>]:|<<=?|>>>?=?|->|\/\/|\.{2,3}|[\.\\%*+\-<>!\/^|&]=?|[~\?\$])/))return"builtin";if(e.match(m))return"operator";if(e.match(/^\.?\d/,!1)){var E=RegExp(/^im\b/),y=!1;if(e.match(/^\d*\.(?!\.)\d*([Eef][\+\-]?\d+)?/i)&&(y=!0),e.match(/^\d+\.(?!\.)\d*/)&&(y=!0),e.match(/^\.\d+/)&&(y=!0),e.match(/^0x\.[0-9a-f]+p[\+\-]?\d+/i)&&(y=!0),e.match(/^0x[0-9a-f]+/i)&&(y=!0),e.match(/^0b[01]+/i)&&(y=!0),e.match(/^0o[0-7]+/i)&&(y=!0),e.match(/^[1-9]\d*(e[\+\-]?\d+)?/)&&(y=!0),e.match(/^0(?![\dx])/i)&&(y=!0),y)return e.match(E),t.leavingExpr=!0,"number"}if(e.match(/^'/))return t.tokenize=l,t.tokenize(e,t);if(e.match(z))return t.tokenize=f(e.current()),t.tokenize(e,t);if(e.match(g))return"meta";if(e.match(h))return null;if(e.match(b))return"keyword";if(e.match(F))return"builtin";var P=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(p)?P?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):e.match(/^({[^}]*})*\(/,!1)?(t.tokenize=c,t.tokenize(e,t)):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function c(e,t){var n=e.match(/^(\(\s*)/);if(n&&(t.firstParenPos<0&&(t.firstParenPos=t.scopes.length),t.scopes.push("("),t.charsAdvanced+=n[1].length),"("==a(t)&&e.match(/^\)/)&&(t.scopes.pop(),t.charsAdvanced+=1,t.scopes.length<=t.firstParenPos)){var r=e.match(/^(\s*where\s+[^\s=]+)*\s*?=(?!=)/,!1);return e.backUp(t.charsAdvanced),t.firstParenPos=-1,t.charsAdvanced=0,t.tokenize=o,r?"def":"builtin"}if(e.match(/^$/g,!1)){for(e.backUp(t.charsAdvanced);t.scopes.length>t.firstParenPos;)t.scopes.pop();return t.firstParenPos=-1,t.charsAdvanced=0,t.tokenize=o,"builtin"}return t.charsAdvanced+=e.match(/^([^()]*)/)[1].length,t.tokenize(e,t)}function u(e,t){return e.match(/.*?(?=,|;|{|}|\(|\)|=|$|\s)/),e.match(/^{/)?t.nestedLevels++:e.match(/^}/)&&t.nestedLevels--,t.nestedLevels>0?e.match(/.*?(?={|})/)||e.next():0==t.nestedLevels&&(t.tokenize=o),"builtin"}function s(e,t){return e.match(/^#=/)&&t.nestedLevels++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match(/^=#/)&&0==--t.nestedLevels&&(t.tokenize=o),"comment"}function l(e,t){var n,r=!1;if(e.match(d))r=!0;else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i)){var i=parseInt(n[1],16);(i<=55295||i>=57344)&&(r=!0,e.next())}else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i=parseInt(n[1],16);i<=1114111&&(r=!0,e.next())}return r?(t.leavingExpr=!0,t.tokenize=o,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match(/^'/)&&(t.tokenize=o),"error")}function f(e){function t(t,n){if(t.eat("\\"))t.next();else{if(t.match(e))return n.tokenize=o,n.leavingExpr=!0,"string";t.eat(/[`"]/)}return t.eatWhile(/[^\\`"]/),"string"}return'"""'===e.substr(-3)?e='"""':'"'===e.substr(-1)&&(e='"'),t}var m=t.operators||n(["[<>]:","[<>=]=","<<=?",">>>?=?","=>","->","\\/\\/","[\\\\%*+\\-<>!=\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),h=t.delimiters||/^[;,()[\]{}]/,p=t.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,d=n(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),v=n(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),k=n(["end","else","elseif","catch","finally"]),b=n(["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"]),F=n(["true","false","nothing","NaN","Inf"]),g=/^@[_A-Za-z][\w]*/,x=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,z=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;return{startState:function(){return{tokenize:o,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedLevels:0,charsAdvanced:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(t,n){var r=0;return"]"!==n&&")"!==n&&"end"!==n&&"else"!==n&&"catch"!==n&&"elseif"!==n&&"finally"!==n||(r=-1),(t.scopes.length+r)*e.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-julia","julia")});