Liferay.Loader.define("liferay!layout-content-page-editor-web$codemirror@5.65.2/mode/asciiarmor/asciiarmor",["module","exports","require","../../lib/codemirror"],(function(e,t,r){window,function(e){"use strict";function errorIfNotEmpty(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?"error":null}e.defineMode("asciiarmor",(function(){return{token:function(e,t){var r;if("top"==t.state)return e.sol()&&(r=e.match(/^-----BEGIN (.*)?-----\s*$/))?(t.state="headers",t.type=r[1],"tag"):errorIfNotEmpty(e);if("headers"==t.state){if(e.sol()&&e.match(/^\w+:/))return t.state="header","atom";var o=errorIfNotEmpty(e);return o&&(t.state="body"),o}return"header"==t.state?(e.skipToEnd(),t.state="headers","string"):"body"==t.state?e.sol()&&(r=e.match(/^-----END (.*)?-----\s*$/))?r[1]!=t.type?"error":(t.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error"):"end"==t.state?errorIfNotEmpty(e):void 0},blankLine:function(e){"headers"==e.state&&(e.state="body")},startState:function(){return{state:"top",type:null}}}})),e.defineMIME("application/pgp","asciiarmor"),e.defineMIME("application/pgp-encrypted","asciiarmor"),e.defineMIME("application/pgp-keys","asciiarmor"),e.defineMIME("application/pgp-signature","asciiarmor")}("object"==typeof t&&"object"==typeof e?r("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=asciiarmor.js.map