{"size": 2069, "ext": "js", "max_stars_repo_path": "public/assets/vendor/codemirror/mode/shell/shell.min.js", "max_stars_repo_name": "FLPolitani/freshlink", "max_stars_repo_stars_event_min_datetime": "2016-12-13T01:37:58.000Z", "max_stars_repo_stars_event_max_datetime": "2016-12-13T02:11:53.000Z", "max_issues_repo_path": "public/assets/vendor/codemirror/mode/shell/shell.min.js", "max_issues_repo_name": "FLPolitani/freshlink", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/assets/vendor/codemirror/mode/shell/shell.min.js", "max_forks_repo_name": "FLPolitani/freshlink", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 2069.0, "max_line_length": 2069, "alphanum_fraction": 0.6283228613}
﻿(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("shell",function(){var g={};function b(l,k){var j=k.split(" ");for(var h=0;h<j.length;h++){g[j[h]]=l}}b("atom","true false");b("keyword","if then do else elif while until for in esac fi fin fil done exit set unset export function");b("builtin","ab awk bash beep cat cc cd chown chmod chroot clear cp curl cut diff echo find gawk gcc get git grep kill killall ln ls make mkdir openssl mv nc node npm ping ps restart rm rmdir sed service sh shopt shred source sort sleep ssh start stop su sudo tee telnet top touch vi vim wall wc wget who write yes zsh");function c(l,k){if(l.eatSpace()){return null}var j=l.sol();var h=l.next();if(h==="\\"){l.next();return null}if(h==="'"||h==='"'||h==="`"){k.tokens.unshift(f(h));return e(l,k)}if(h==="#"){if(j&&l.eat("!")){l.skipToEnd();return"meta"}l.skipToEnd();return"comment"}if(h==="$"){k.tokens.unshift(d);return e(l,k)}if(h==="+"||h==="="){return"operator"}if(h==="-"){l.eat("-");l.eatWhile(/\w/);return"attribute"}if(/\d/.test(h)){l.eatWhile(/\d/);if(l.eol()||!/\w/.test(l.peek())){return"number"}}l.eatWhile(/[\w-]/);var i=l.current();if(l.peek()==="="&&/\w+/.test(i)){return"def"}return g.hasOwnProperty(i)?g[i]:null}function f(h){return function(m,l){var k,i=false,j=false;while((k=m.next())!=null){if(k===h&&!j){i=true;break}if(k==="$"&&!j&&h!=="'"){j=true;m.backUp(1);l.tokens.unshift(d);break}j=!j&&k==="\\"}if(i||!j){l.tokens.shift()}return(h==="`"||h===")"?"quote":"string")}}var d=function(k,j){if(j.tokens.length>1){k.eat("$")}var h=k.next(),i=/\w/;if(h==="{"){i=/[^}]/}if(h==="("){j.tokens[0]=f(")");return e(k,j)}if(!/\d/.test(h)){k.eatWhile(i);k.eat("}")}j.tokens.shift();return"def"};function e(i,h){return(h.tokens[0]||c)(i,h)}return{startState:function(){return{tokens:[]}},token:function(i,h){return e(i,h)},lineComment:"#",fold:"brace"}});a.defineMIME("text/x-sh","shell")});