"use strict";(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[3282],{53282:(u,L,D)=>{D.r(L),D.d(L,{cobol:()=>r});var S="string",U="atom";function C(E){for(var T={},I=E.split(" "),R=0;R >= "),N={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};const r={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(E,T){if(null==T.indentStack&&E.sol()&&(T.indentation=6),E.eatSpace())return null;var I=null;if("string"===T.mode){for(var R=!1;null!=(R=E.next());)if(('"'==R||"'"==R)&&!E.match(/['"]/,!1)){T.mode=!1;break}I=S}else{var O=E.next(),A=E.column();if(A>=0&&A<=5)I="def";else if(A>=72&&A<=79)E.skipToEnd(),I="header";else if("*"==O&&6==A)E.skipToEnd(),I="comment";else if('"'==O||"'"==O)T.mode="string",I=S;else if("'"!=O||N.digit_or_colon.test(E.peek()))if("."==O)I="link";else if(function Y(E,T){return"0"===E&&T.eat(/x/i)?(T.eatWhile(N.hex),!0):(("+"==E||"-"==E)&&N.digit.test(T.peek())&&(T.eat(N.sign),E=T.next()),!!N.digit.test(E)&&(T.eat(E),T.eatWhile(N.digit),"."==T.peek()&&(T.eat("."),T.eatWhile(N.digit)),T.eat(N.exponent)&&(T.eat(N.sign),T.eatWhile(N.digit)),!0))}(O,E))I="number";else{if(E.current().match(N.symbol))for(;A<71&&void 0!==E.eat(N.symbol);)A++;I=M&&M.propertyIsEnumerable(E.current().toUpperCase())?"keyword":e&&e.propertyIsEnumerable(E.current().toUpperCase())?"builtin":P&&P.propertyIsEnumerable(E.current().toUpperCase())?U:null}else I=U}return I},indent:function(E){return null==E.indentStack?E.indentation:E.indentStack.indent}}}}]);