source: node_modules/highlight.js/lib/languages/ldif.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 783 bytes
RevLine 
[d24f17c]1/*
2Language: LDIF
3Contributors: Jacob Childress <jacobc@gmail.com>
4Category: enterprise, config
5Website: https://en.wikipedia.org/wiki/LDAP_Data_Interchange_Format
6*/
7function ldif(hljs) {
8 return {
9 name: 'LDIF',
10 contains: [
11 {
12 className: 'attribute',
13 begin: '^dn',
14 end: ': ',
15 excludeEnd: true,
16 starts: {
17 end: '$',
18 relevance: 0
19 },
20 relevance: 10
21 },
22 {
23 className: 'attribute',
24 begin: '^\\w',
25 end: ': ',
26 excludeEnd: true,
27 starts: {
28 end: '$',
29 relevance: 0
30 }
31 },
32 {
33 className: 'literal',
34 begin: '^-',
35 end: '$'
36 },
37 hljs.HASH_COMMENT_MODE
38 ]
39 };
40}
41
42module.exports = ldif;
Note: See TracBrowser for help on using the repository browser.