!function(r){"object"==typeof exports&&"object"==typeof module?r(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)}(function(r){"use strict";r.defineMode("http",function(){function o(r,e){return r.skipToEnd(),e.cur=c,"error"}function r(r,e){return r.match(/^HTTP\/\d\.\d/)?(e.cur=t,"keyword"):r.match(/^[A-Z]+/)&&/[ \t]/.test(r.peek())?(e.cur=n,"keyword"):o(r,e)}function t(r,e){var t=r.match(/^\d+/);if(!t)return o(r,e);e.cur=i;var n=Number(t[0]);return 100<=n&&n<200?"positive informational":200<=n&&n<300?"positive success":300<=n&&n<400?"positive redirect":400<=n&&n<500?"negative client-error":500<=n&&n<600?"negative server-error":"error"}function i(r,e){return r.skipToEnd(),e.cur=c,null}function n(r,e){return r.eatWhile(/\S/),e.cur=u,"string-2"}function u(r,e){return r.match(/^HTTP\/\d\.\d$/)?(e.cur=c,"keyword"):o(r,e)}function c(r){return r.sol()&&!r.eat(/[ \t]/)?r.match(/^.*?:/)?"atom":(r.skipToEnd(),"error"):(r.skipToEnd(),"string")}function d(r){return r.skipToEnd(),null}return{token:function(r,e){var t=e.cur;return t!=c&&t!=d&&r.eatSpace()?null:t(r,e)},blankLine:function(r){r.cur=d},startState:function(){return{cur:r}}}}),r.defineMIME("message/http","http")});