Mercurial > vim
annotate runtime/syntax/ldif.vim @ 28652:27dcbe70e1f0 v8.2.4850
patch 8.2.4850: mksession mixes up "tabpages" and "curdir" arguments
Commit: https://github.com/vim/vim/commit/d7c9564d8d24343f2e27205633032dd6ebe5232c
Author: LemonBoy <thatlemon@gmail.com>
Date: Sat Apr 30 16:10:27 2022 +0100
patch 8.2.4850: mksession mixes up "tabpages" and "curdir" arguments
Problem: Mksession mixes up "tabpages" and "curdir" arguments.
Solution: Correct logic for storing tabpage in session. (closes https://github.com/vim/vim/issues/10312)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Apr 2022 17:15:02 +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" |