物管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
848 B

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