CoreFiles by mySites.guru
shell.min.js1 lines, 2,330 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
eff426b3c1b6459a4fa04884320af13d
sha1
6cfcd3e4ae5838830bb5ee4c1546f8f6e001a049
sha256
4cd5c0ee143ee5f857316413fa0ba78bbb4e436c39759654d0334a2927681396
!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("shell",function(){var e={};function t(t,n){for(var r=n.split(" "),i=0;i<r.length;i++)e[r[i]]=t}function n(e,t){var s="("==e?")":"{"==e?"}":e;return function(u,f){for(var l,c=!1;null!=(l=u.next());){if(l===s&&!c){f.tokens.shift();break}if("$"===l&&!c&&"'"!==e&&u.peek()!=s){c=!0,u.backUp(1),f.tokens.unshift(i);break}if(!c&&e!==s&&l===e)return f.tokens.unshift(n(e,t)),o(u,f);if(!c&&/['"]/.test(l)&&!/['"]/.test(e)){f.tokens.unshift(r(l,"string")),u.backUp(1);break}c=!c&&"\\"===l}return t}}function r(e,t){return function(r,i){return i.tokens[0]=n(e,t),r.next(),o(r,i)}}t("atom","true false"),t("keyword","if then do else elif while until for in esac fi fin fil done exit set unset export function"),t("builtin","ab awk bash beep cat cc cd chown chmod chroot clear cp curl cut diff echo find gawk gcc get git grep hg 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 svn tee telnet top touch vi vim wall wc wget who write yes zsh");var i=function(e,t){t.tokens.length>1&&e.eat("$");var r=e.next();return/['"({]/.test(r)?(t.tokens[0]=n(r,"("==r?"quote":"{"==r?"def":"string"),o(e,t)):(/\d/.test(r)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function o(t,r){return(r.tokens[0]||function(t,r){if(t.eatSpace())return null;var s=t.sol(),u=t.next();if("\\"===u)return t.next(),null;if("'"===u||'"'===u||"`"===u)return r.tokens.unshift(n(u,"`"===u?"quote":"string")),o(t,r);if("#"===u)return s&&t.eat("!")?(t.skipToEnd(),"meta"):(t.skipToEnd(),"comment");if("$"===u)return r.tokens.unshift(i),o(t,r);if("+"===u||"="===u)return"operator";if("-"===u)return t.eat("-"),t.eatWhile(/\w/),"attribute";if(/\d/.test(u)&&(t.eatWhile(/\d/),t.eol()||!/\w/.test(t.peek())))return"number";t.eatWhile(/[\w-]/);var f=t.current();return"="===t.peek()&&/\w+/.test(f)?"def":e.hasOwnProperty(f)?e[f]:null})(t,r)}return{startState:function(){return{tokens:[]}},token:function(e,t){return o(e,t)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),e.defineMIME("text/x-sh","shell"),e.defineMIME("application/x-sh","shell")});

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