mirror of
https://github.com/FlightControl-Master/MOOSE_DOCS.git
synced 2025-08-15 10:37:49 +00:00
Clean
This commit is contained in:
54
Highlight/languages/apache.js
Normal file
54
Highlight/languages/apache.js
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
Language: Apache
|
||||
Author: Ruslan Keba <rukeba@gmail.com>
|
||||
Contributors: Ivan Sagalaev <maniac@softwaremaniacs.org>
|
||||
Website: http://rukeba.com/
|
||||
Description: language definition for Apache configuration files (httpd.conf & .htaccess)
|
||||
Category: common, config
|
||||
*/
|
||||
|
||||
function(hljs) {
|
||||
var NUMBER = {className: 'number', begin: '[\\$%]\\d+'};
|
||||
return {
|
||||
aliases: ['apacheconf'],
|
||||
case_insensitive: true,
|
||||
contains: [
|
||||
hljs.HASH_COMMENT_MODE,
|
||||
{className: 'section', begin: '</?', end: '>'},
|
||||
{
|
||||
className: 'attribute',
|
||||
begin: /\w+/,
|
||||
relevance: 0,
|
||||
// keywords aren’t needed for highlighting per se, they only boost relevance
|
||||
// for a very generally defined mode (starts with a word, ends with line-end
|
||||
keywords: {
|
||||
nomarkup:
|
||||
'order deny allow setenv rewriterule rewriteengine rewritecond documentroot ' +
|
||||
'sethandler errordocument loadmodule options header listen serverroot ' +
|
||||
'servername'
|
||||
},
|
||||
starts: {
|
||||
end: /$/,
|
||||
relevance: 0,
|
||||
keywords: {
|
||||
literal: 'on off all'
|
||||
},
|
||||
contains: [
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '\\s\\[', end: '\\]$'
|
||||
},
|
||||
{
|
||||
className: 'variable',
|
||||
begin: '[\\$%]\\{', end: '\\}',
|
||||
contains: ['self', NUMBER]
|
||||
},
|
||||
NUMBER,
|
||||
hljs.QUOTE_STRING_MODE
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
illegal: /\S/
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user