Initial commit.
Signed-off-by: Andreas Widen <aw@luflow.net>
This commit is contained in:
commit
a4a5c7daa5
1389 changed files with 241399 additions and 0 deletions
76
static/highlight/languages/dsconfig.js
Normal file
76
static/highlight/languages/dsconfig.js
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
/*! `dsconfig` grammar compiled for Highlight.js 11.11.1 */
|
||||
(function(){
|
||||
var hljsGrammar = (function () {
|
||||
'use strict';
|
||||
|
||||
/*
|
||||
Language: dsconfig
|
||||
Description: dsconfig batch configuration language for LDAP directory servers
|
||||
Contributors: Jacob Childress <jacobc@gmail.com>
|
||||
Category: enterprise, config
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function dsconfig(hljs) {
|
||||
const QUOTED_PROPERTY = {
|
||||
className: 'string',
|
||||
begin: /"/,
|
||||
end: /"/
|
||||
};
|
||||
const APOS_PROPERTY = {
|
||||
className: 'string',
|
||||
begin: /'/,
|
||||
end: /'/
|
||||
};
|
||||
const UNQUOTED_PROPERTY = {
|
||||
className: 'string',
|
||||
begin: /[\w\-?]+:\w+/,
|
||||
end: /\W/,
|
||||
relevance: 0
|
||||
};
|
||||
const VALUELESS_PROPERTY = {
|
||||
className: 'string',
|
||||
begin: /\w+(\-\w+)*/,
|
||||
end: /(?=\W)/,
|
||||
relevance: 0
|
||||
};
|
||||
|
||||
return {
|
||||
keywords: 'dsconfig',
|
||||
contains: [
|
||||
{
|
||||
className: 'keyword',
|
||||
begin: '^dsconfig',
|
||||
end: /\s/,
|
||||
excludeEnd: true,
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
className: 'built_in',
|
||||
begin: /(list|create|get|set|delete)-(\w+)/,
|
||||
end: /\s/,
|
||||
excludeEnd: true,
|
||||
illegal: '!@#$%^&*()',
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
className: 'built_in',
|
||||
begin: /--(\w+)/,
|
||||
end: /\s/,
|
||||
excludeEnd: true
|
||||
},
|
||||
QUOTED_PROPERTY,
|
||||
APOS_PROPERTY,
|
||||
UNQUOTED_PROPERTY,
|
||||
VALUELESS_PROPERTY,
|
||||
hljs.HASH_COMMENT_MODE
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
return dsconfig;
|
||||
|
||||
})();
|
||||
|
||||
hljs.registerLanguage('dsconfig', hljsGrammar);
|
||||
})();
|
||||
Loading…
Reference in a new issue