ldif.js 568 B

123456789101112131415161718192021222324252627
  1. /*
  2. Language: LDIF
  3. Contributors: Jacob Childress <[email protected]>
  4. Category: enterprise, config
  5. */
  6. function(hljs) {
  7. return {
  8. contains: [
  9. {
  10. className: 'attribute',
  11. begin: '^dn', end: ': ', excludeEnd: true,
  12. starts: {end: '$', relevance: 0},
  13. relevance: 10
  14. },
  15. {
  16. className: 'attribute',
  17. begin: '^\\w', end: ': ', excludeEnd: true,
  18. starts: {end: '$', relevance: 0}
  19. },
  20. {
  21. className: 'literal',
  22. begin: '^-', end: '$'
  23. },
  24. hljs.HASH_COMMENT_MODE
  25. ]
  26. };
  27. }