Liferay.Loader.define("journal-web$codemirror@5.65.2/mode/commonlisp/commonlisp",["module","exports","require","../../lib/codemirror"],(function(e,t,n){var r,o=void 0;window;r=function(e){"use strict";e.defineMode("commonlisp",(function(e){var t,n=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,r=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,o=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,i=/[^\s'`,@()\[\]";]/;function readSym(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!i.test(t)){e.backUp(1);break}return e.current()}function base(e,i){if(e.eatSpace())return t="ws",null;if(e.match(o))return"number";var c;if("\\"==(c=e.next())&&(c=e.next()),'"'==c)return(i.tokenize=inString)(e,i);if("("==c)return t="open","bracket";if(")"==c||"]"==c)return t="close","bracket";if(";"==c)return e.skipToEnd(),t="ws","comment";if(/['`,@]/.test(c))return null;if("|"==c)return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if("#"==c)return"("==(c=e.next())?(t="open","bracket"):/[+\-=\.']/.test(c)||/\d/.test(c)&&e.match(/^\d*#/)?null:"|"==c?(i.tokenize=inComment)(e,i):":"==c?(readSym(e),"meta"):"\\"==c?(e.next(),readSym(e),"string-2"):"error";var l=readSym(e);return"."==l?null:(t="symbol","nil"==l||"t"==l||":"==l.charAt(0)?"atom":"open"==i.lastType&&(n.test(l)||r.test(l))?"keyword":"&"==l.charAt(0)?"variable-2":"variable")}function inString(e,t){for(var n,r=!1;n=e.next();){if('"'==n&&!r){t.tokenize=base;break}r=!r&&"\\"==n}return"string"}function inComment(e,n){for(var r,o;r=e.next();){if("#"==r&&"|"==o){n.tokenize=base;break}o=r}return t="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:base}},token:function(n,o){n.sol()&&"number"!=typeof o.ctx.indentTo&&(o.ctx.indentTo=o.ctx.start+1),t=null;var i=o.tokenize(n,o);return"ws"!=t&&(null==o.ctx.indentTo?"symbol"==t&&r.test(n.current())?o.ctx.indentTo=o.ctx.start+e.indentUnit:o.ctx.indentTo="next":"next"==o.ctx.indentTo&&(o.ctx.indentTo=n.column()),o.lastType=t),"open"==t?o.ctx={prev:o.ctx,start:n.column(),indentTo:null}:"close"==t&&(o.ctx=o.ctx.prev||o.ctx),i},indent:function(e,t){var n=e.ctx.indentTo;return"number"==typeof n?n:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",fold:"brace-paren",blockCommentStart:"#|",blockCommentEnd:"|#"}})),e.defineMIME("text/x-common-lisp","commonlisp")},"object"==typeof t&&"object"==typeof e?r(n("../../lib/codemirror")):"function"==typeof o&&o.amd?o(["../../lib/codemirror"],r):r(CodeMirror)}));
//# sourceMappingURL=commonlisp.js.map