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