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