apache.min.js 1020 B

1234567891011121314
  1. /*! `apache` grammar compiled for Highlight.js 11.7.0 */
  2. var hljsGrammar=(()=>{"use strict";return e=>{const a={className:"number",
  3. begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{
  4. name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,
  5. contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,
  6. contains:[a,{className:"number",begin:/:\d{1,5}/
  7. },e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",
  8. begin:/\w+/,relevance:0,keywords:{
  9. _:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]
  10. },starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},
  11. contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",
  12. begin:/[\$%]\{/,end:/\}/,contains:["self",{className:"number",begin:/[$%]\d+/}]
  13. },a,{className:"number",begin:/\b\d+/},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}
  14. })();export default hljsGrammar;