hexo/node_modules/highlight.js/es/languages/ldif.js

32 lines
603 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
/*
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 };