ldif.js 783 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. Language: LDIF
  3. Contributors: Jacob Childress <jacobc@gmail.com>
  4. Category: enterprise, config
  5. Website: https://en.wikipedia.org/wiki/LDAP_Data_Interchange_Format
  6. */
  7. function 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. module.exports = ldif;