ldif.js 486 B

12345678910111213141516171819202122
  1. module.exports = function(hljs) {
  2. return {
  3. contains: [
  4. {
  5. className: 'attribute',
  6. begin: '^dn', end: ': ', excludeEnd: true,
  7. starts: {end: '$', relevance: 0},
  8. relevance: 10
  9. },
  10. {
  11. className: 'attribute',
  12. begin: '^\\w', end: ': ', excludeEnd: true,
  13. starts: {end: '$', relevance: 0}
  14. },
  15. {
  16. className: 'literal',
  17. begin: '^-', end: '$'
  18. },
  19. hljs.HASH_COMMENT_MODE
  20. ]
  21. };
  22. };