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