/usr/share/usermin/authentic-theme/unauthenticated/js/codemirror/mode/cobol
NameSizeModeActions
cobol.js64400644editdlrm
Edit: /usr/share/usermin/authentic-theme/unauthenticated/js/codemirror/mode/cobol/cobol.js (6440B)
!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("cobol",function(){function E(E){for(var T={},I=E.split(" "),N=0;N >= "),R={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(E,A){if(null==A.indentStack&&E.sol()&&(A.indentation=6),E.eatSpace())return null;var O=null;switch(A.mode){case"string":for(var C=!1;null!=(C=E.next());)if(('"'==C||"'"==C)&&!E.match(/['"]/,!1)){A.mode=!1;break}O="string";break;default:var L=E.next(),D=E.column();if(D>=0&&D<=5)O="def";else if(D>=72&&D<=79)E.skipToEnd(),O="header";else if("*"==L&&6==D)E.skipToEnd(),O="comment";else if('"'==L||"'"==L)A.mode="string",O="string";else if("'"!=L||R.digit_or_colon.test(E.peek()))if("."==L)O="link";else if(function(E,T){return"0"===E&&T.eat(/x/i)?(T.eatWhile(R.hex),!0):("+"!=E&&"-"!=E||!R.digit.test(T.peek())||(T.eat(R.sign),E=T.next()),!!R.digit.test(E)&&(T.eat(E),T.eatWhile(R.digit),"."==T.peek()&&(T.eat("."),T.eatWhile(R.digit)),T.eat(R.exponent)&&(T.eat(R.sign),T.eatWhile(R.digit)),!0))}(L,E))O="number";else{if(E.current().match(R.symbol))for(;D<71&&void 0!==E.eat(R.symbol);)D++;O=I&&I.propertyIsEnumerable(E.current().toUpperCase())?"keyword":N&&N.propertyIsEnumerable(E.current().toUpperCase())?"builtin":T&&T.propertyIsEnumerable(E.current().toUpperCase())?"atom":null}else O="atom"}return O},indent:function(E){return null==E.indentStack?E.indentation:E.indentStack.indent}}}),E.defineMIME("text/x-cobol","cobol")});