function c(r,n){return r.skipToEnd(),n.cur=u,"error"}function i(r,n){return r.match(/^HTTP\/\d\.\d/)?(n.cur=a,"keyword"):r.match(/^[A-Z]+/)&&/[ \t]/.test(r.peek())?(n.cur=d,"keyword"):c(r,n)}function a(r,n){var t=r.match(/^\d+/);if(!t)return c(r,n);n.cur=s;var o=Number(t[0]);return o>=100&&o<400?"atom":"error"}function s(r,n){return r.skipToEnd(),n.cur=u,null}function d(r,n){return r.eatWhile(/\S/),n.cur=f,"string.special"}function f(r,n){return r.match(/^HTTP\/\d\.\d$/)?(n.cur=u,"keyword"):c(r,n)}function u(r){return r.sol()&&!r.eat(/[ \t]/)?r.match(/^.*?:/)?"atom":(r.skipToEnd(),"error"):(r.skipToEnd(),"string")}function e(r){return r.skipToEnd(),null}const k={name:"http",token:function(r,n){var t=n.cur;return t!=u&&t!=e&&r.eatSpace()?null:t(r,n)},blankLine:function(r){r.cur=e},startState:function(){return{cur:i}}};export{k as http};
