mirror of https://github.com/mindoc-org/mindoc.git
53 lines
1.2 KiB
Go
53 lines
1.2 KiB
Go
/*
|
|
Language: dsconfig
|
|
Description: dsconfig batch configuration language for LDAP directory servers
|
|
Contributors: Jacob Childress <jacobc@gmail.com>
|
|
Category: enterprise, config
|
|
*/
|
|
function(hljs) {
|
|
var QUOTED_PROPERTY = {
|
|
className: 'string',
|
|
begin: /"/, end: /"/
|
|
};
|
|
var APOS_PROPERTY = {
|
|
className: 'string',
|
|
begin: /'/, end: /'/
|
|
};
|
|
var UNQUOTED_PROPERTY = {
|
|
className: 'string',
|
|
begin: '[\\w-?]+:\\w+', end: '\\W',
|
|
relevance: 0
|
|
};
|
|
var 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
|
|
]
|
|
};
|
|
}
|