http.min.js 905 B

1234567891011121314
  1. /*! `http` grammar compiled for Highlight.js 11.7.0 */
  2. var hljsGrammar=(()=>{"use strict";return e=>{const a="HTTP/(2|1\\.[01])",n={
  3. className:"attribute",
  4. begin:e.regex.concat("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{
  5. contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",
  6. relevance:0}}]}},s=[n,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}
  7. }];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{
  8. begin:"^(?="+a+" \\d{3})",end:/$/,contains:[{className:"meta",begin:a},{
  9. className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,
  10. contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+a+"$)",end:/$/,contains:[{
  11. className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{
  12. className:"meta",begin:a},{className:"keyword",begin:"[A-Z]+"}],starts:{
  13. end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(n,{relevance:0})]}}})()
  14. ;export default hljsGrammar;