ldif.vim 1014 B

12345678910111213141516171819202122232425262728293031323334
  1. " Vim syntax file
  2. " Language: LDAP LDIF
  3. " Maintainer: Zak Johnson <zakj@nox.cx>
  4. " Last Change: 2003-12-30
  5. " quit when a syntax file was already loaded
  6. if exists("b:current_syntax")
  7. finish
  8. endif
  9. syn sync minlines=10 linebreaks=1
  10. syn match ldifAttribute /^[^ #][^:]*/ contains=ldifOption display
  11. syn match ldifOption /;[^:]\+/ contained contains=ldifPunctuation display
  12. syn match ldifPunctuation /;/ contained display
  13. syn region ldifStringValue matchgroup=ldifPunctuation start=/: / end=/\_$/ skip=/\n /
  14. syn region ldifBase64Value matchgroup=ldifPunctuation start=/:: / end=/\_$/ skip=/\n /
  15. syn region ldifFileValue matchgroup=ldifPunctuation start=/:< / end=/\_$/ skip=/\n /
  16. syn region ldifComment start=/^#/ end=/\_$/ skip=/\n /
  17. hi def link ldifAttribute Type
  18. hi def link ldifOption Identifier
  19. hi def link ldifPunctuation Normal
  20. hi def link ldifStringValue String
  21. hi def link ldifBase64Value Special
  22. hi def link ldifFileValue Special
  23. hi def link ldifComment Comment
  24. let b:current_syntax = "ldif"