Mercurial > vim
annotate runtime/syntax/ldif.vim @ 30196:381462ee23fd v9.0.0434
patch 9.0.0434: gitignore files are not recognized
Commit: https://github.com/vim/vim/commit/9ba2786f15f0b53a90fd221832a5bedfc6dbfe20
Author: ObserverOfTime <chronobserver@disroot.org>
Date: Sat Sep 10 11:04:24 2022 +0100
patch 9.0.0434: gitignore files are not recognized
Problem: gitignore files are not recognized.
Solution: Add patterns for the gitignore filetype. (closes https://github.com/vim/vim/issues/11102)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 10 Sep 2022 12:15:04 +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" |