mirror of https://github.com/jkjoy/sunpeiwen.git
32 lines
603 B
JavaScript
32 lines
603 B
JavaScript
/*
|
|
Language: LDIF
|
|
Contributors: Jacob Childress <jacobc@gmail.com>
|
|
Category: enterprise, config
|
|
Website: https://en.wikipedia.org/wiki/LDAP_Data_Interchange_Format
|
|
*/
|
|
|
|
/** @type LanguageFn */
|
|
function ldif(hljs) {
|
|
return {
|
|
name: 'LDIF',
|
|
contains: [
|
|
{
|
|
className: 'attribute',
|
|
match: '^dn(?=:)',
|
|
relevance: 10
|
|
},
|
|
{
|
|
className: 'attribute',
|
|
match: '^\\w+(?=:)'
|
|
},
|
|
{
|
|
className: 'literal',
|
|
match: '^-'
|
|
},
|
|
hljs.HASH_COMMENT_MODE
|
|
]
|
|
};
|
|
}
|
|
|
|
export { ldif as default };
|