"use strict";(self.webpackChunksc_markdown=self.webpackChunksc_markdown||[]).push([[1846],{1846(x,d,w){w.d(d,{shell:()=>_});var f={};function s(n,e){for(var r=0;r<e.length;r++)f[e[r]]=n}var k=["true","false"],h=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],p=["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","nl","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"];function g(n,e){if(n.eatSpace())return null;var r=n.sol(),t=n.next();if("\\"===t)return n.next(),null;if("'"===t||'"'===t||"`"===t)return e.tokens.unshift(l(t,"`"===t?"quote":"string")),c(n,e);if("#"===t)return r&&n.eat("!")?(n.skipToEnd(),"meta"):(n.skipToEnd(),"comment");if("$"===t)return e.tokens.unshift(a),c(n,e);if("+"===t||"="===t)return"operator";if("-"===t)return n.eat("-"),n.eatWhile(/\w/),"attribute";if("<"==t){if(n.match("<<"))return"operator";var o=n.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);if(o)return e.tokens.unshift(function b(n){return function(e,r){return e.sol()&&e.string==n&&r.tokens.shift(),e.skipToEnd(),"string.special"}}(o[1]||o[2])),"string.special"}if(/\d/.test(t)&&(n.eatWhile(/\d/),n.eol()||!/\w/.test(n.peek())))return"number";n.eatWhile(/[\w-]/);var i=n.current();return"="===n.peek()&&/\w+/.test(i)?"def":f.hasOwnProperty(i)?f[i]:null}function l(n,e){var r="("==n?")":"{"==n?"}":n;return function(t,o){for(var i,u=!1;null!=(i=t.next());){if(i===r&&!u){o.tokens.shift();break}if("$"===i&&!u&&"'"!==n&&t.peek()!=r){u=!0,t.backUp(1),o.tokens.unshift(a);break}if(!u&&n!==r&&i===n)return o.tokens.unshift(l(n,e)),c(t,o);if(!u&&/['"]/.test(i)&&!/['"]/.test(n)){o.tokens.unshift(v(i,"string")),t.backUp(1);break}u=!u&&"\\"===i}return e}}function v(n,e){return function(r,t){return t.tokens[0]=l(n,e),r.next(),c(r,t)}}s("atom",k),s("keyword",h),s("builtin",p);var a=function(n,e){e.tokens.length>1&&n.eat("$");var r=n.next();return/['"({]/.test(r)?(e.tokens[0]=l(r,"("==r?"quote":"{"==r?"def":"string"),c(n,e)):(/\d/.test(r)||n.eatWhile(/\w/),e.tokens.shift(),"def")};function c(n,e){return(e.tokens[0]||g)(n,e)}const _={name:"shell",startState:function(){return{tokens:[]}},token:function(n,e){return c(n,e)},languageData:{autocomplete:k.concat(h,p),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}}}]);