accesslog.min.js 866 B

12345678910111213
  1. /*! `accesslog` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var e=(()=>{"use strict";return e=>{
  3. const n=e.regex,a=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"]
  4. ;return{name:"Apache Access Log",contains:[{className:"number",
  5. begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{
  6. className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",
  7. begin:n.concat(/"/,n.either(...a)),end:/"/,keywords:a,illegal:/\n/,relevance:5,
  8. contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",
  9. begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",
  10. begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",
  11. begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{
  12. className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}})()
  13. ;hljs.registerLanguage("accesslog",e)})();