ldif.js 572 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. /** @type LanguageFn */
  8. function ldif(hljs) {
  9. return {
  10. name: 'LDIF',
  11. contains: [
  12. {
  13. className: 'attribute',
  14. match: '^dn(?=:)',
  15. relevance: 10
  16. },
  17. {
  18. className: 'attribute',
  19. match: '^\\w+(?=:)'
  20. },
  21. {
  22. className: 'literal',
  23. match: '^-'
  24. },
  25. hljs.HASH_COMMENT_MODE
  26. ]
  27. };
  28. }
  29. export { ldif as default };