Liferay.Loader.define("liferay!template-web$codemirror@5.65.2/mode/http/http",["module","exports","require","../../lib/codemirror"],(function(e,r,t){var o,n=void 0;window;o=function(e){"use strict";e.defineMode("http",(function(){function failFirstLine(e,r){return e.skipToEnd(),r.cur=header,"error"}function start(e,r){return e.match(/^HTTP\/\d\.\d/)?(r.cur=responseStatusCode,"keyword"):e.match(/^[A-Z]+/)&&/[ \t]/.test(e.peek())?(r.cur=requestPath,"keyword"):failFirstLine(e,r)}function responseStatusCode(e,r){var t=e.match(/^\d+/);if(!t)return failFirstLine(e,r);r.cur=responseStatusText;var o=Number(t[0]);return o>=100&&o<200?"positive informational":o>=200&&o<300?"positive success":o>=300&&o<400?"positive redirect":o>=400&&o<500?"negative client-error":o>=500&&o<600?"negative server-error":"error"}function responseStatusText(e,r){return e.skipToEnd(),r.cur=header,null}function requestPath(e,r){return e.eatWhile(/\S/),r.cur=requestProtocol,"string-2"}function requestProtocol(e,r){return e.match(/^HTTP\/\d\.\d$/)?(r.cur=header,"keyword"):failFirstLine(e,r)}function header(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function body(e){return e.skipToEnd(),null}return{token:function(e,r){var t=r.cur;return t!=header&&t!=body&&e.eatSpace()?null:t(e,r)},blankLine:function(e){e.cur=body},startState:function(){return{cur:start}}}})),e.defineMIME("message/http","http")},"object"==typeof r&&"object"==typeof e?o(t("../../lib/codemirror")):"function"==typeof n&&n.amd?n(["../../lib/codemirror"],o):o(CodeMirror)}));
//# sourceMappingURL=http.js.map