1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/highlight.js/lib/languages/ldif.js

43 lines
783 B
JavaScript
Raw Normal View History

2024-01-16 21:26:16 +08:00
/*
Language: LDIF
Contributors: Jacob Childress <jacobc@gmail.com>
Category: enterprise, config
Website: https://en.wikipedia.org/wiki/LDAP_Data_Interchange_Format
*/
function ldif(hljs) {
2023-12-18 13:12:25 +08:00
return {
2024-01-16 21:26:16 +08:00
name: 'LDIF',
2023-12-18 13:12:25 +08:00
contains: [
{
className: 'attribute',
2024-01-16 21:26:16 +08:00
begin: '^dn',
end: ': ',
excludeEnd: true,
starts: {
end: '$',
relevance: 0
},
2023-12-18 13:12:25 +08:00
relevance: 10
},
{
className: 'attribute',
2024-01-16 21:26:16 +08:00
begin: '^\\w',
end: ': ',
excludeEnd: true,
starts: {
end: '$',
relevance: 0
}
2023-12-18 13:12:25 +08:00
},
{
className: 'literal',
2024-01-16 21:26:16 +08:00
begin: '^-',
end: '$'
2023-12-18 13:12:25 +08:00
},
hljs.HASH_COMMENT_MODE
]
};
2024-01-16 21:26:16 +08:00
}
module.exports = ldif;