neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

ldif.vim (1014B)


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