]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/apache.js
1 /*! `apache` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
7 Language: Apache config
8 Author: Ruslan Keba <rukeba@gmail.com>
9 Contributors: Ivan Sagalaev <maniac@softwaremaniacs.org>
10 Website: https://httpd.apache.org
11 Description: language definition for Apache configuration files (httpd.conf & .htaccess)
16 /** @type LanguageFn */
17 function apache(hljs
) {
28 begin: /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/
35 name: 'Apache config',
36 aliases: [ 'apacheconf' ],
37 case_insensitive: true,
39 hljs
.HASH_COMMENT_MODE
,
47 // low relevance prevents us from claming XML/HTML where this rule would
48 // match strings inside of XML tags
49 hljs
.inherit(hljs
.QUOTE_STRING_MODE
, { relevance: 0 })
53 className: 'attribute',
56 // keywords aren’t needed for highlighting per se, they only boost relevance
57 // for a very generally defined mode (starts with a word, ends with line-end
79 keywords: { literal: 'on off all deny allow' },
91 className: 'variable',
101 hljs
.QUOTE_STRING_MODE
114 hljs
.registerLanguage('apache', hljsGrammar
);