ldif.js 683 B

12345678910111213141516171819202122232425262728293031
  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', end: ': ', excludeEnd: true,
  14. starts: {end: '$', relevance: 0},
  15. relevance: 10
  16. },
  17. {
  18. className: 'attribute',
  19. begin: '^\\w', end: ': ', excludeEnd: true,
  20. starts: {end: '$', relevance: 0}
  21. },
  22. {
  23. className: 'literal',
  24. begin: '^-', end: '$'
  25. },
  26. hljs.HASH_COMMENT_MODE
  27. ]
  28. };
  29. }
  30. module.exports = ldif;