Mercurial > vim
annotate runtime/syntax/ldif.vim @ 20585:0b55c9a14ea1 v8.2.0846
patch 8.2.0846: build failure with small features
Commit: https://github.com/vim/vim/commit/d5c2c7763d73b91efd64a49da8221f9955debdd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 30 16:17:33 2020 +0200
patch 8.2.0846: build failure with small features
Problem: Build failure with small features.
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 May 2020 16:30:03 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: LDAP LDIF | |
3 " Maintainer: Zak Johnson <zakj@nox.cx> | |
4 " Last Change: 2003-12-30 | |
5 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
6 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
7 if exists("b:current_syntax") |
7 | 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 | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
24 hi def link ldifAttribute Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
25 hi def link ldifOption Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
26 hi def link ldifPunctuation Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
27 hi def link ldifStringValue String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
28 hi def link ldifBase64Value Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
29 hi def link ldifFileValue Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
30 hi def link ldifComment Comment |
7 | 31 |
32 | |
33 let b:current_syntax = "ldif" |