Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: syntax/
Date: Mon, 30 Sep 2019 07:28:31
Message-Id: 1569828466.d09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe.mgorny@gentoo
1 commit: d09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 30 07:27:46 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 30 07:27:46 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=d09e3a3c
7
8 gentoo-mirrors: Support HTTPS, add more colors
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 syntax/gentoo-mirrors.vim | 14 ++++++++++----
13 1 file changed, 10 insertions(+), 4 deletions(-)
14
15 diff --git a/syntax/gentoo-mirrors.vim b/syntax/gentoo-mirrors.vim
16 index 686465b..66071d3 100644
17 --- a/syntax/gentoo-mirrors.vim
18 +++ b/syntax/gentoo-mirrors.vim
19 @@ -19,11 +19,17 @@ endif
20 runtime syntax/gentoo-package-common.vim
21
22 syn match GentooMirrorsAtom /^[^# \t]\+/
23 - \ nextgroup=GentooMirrorsUrl skipwhite
24 -syn region GentooMirrorsUrl contained start=/\(http\|ftp\):\/\// end=/\(\s\)\@=\|$/
25 - \ nextgroup=GentooMirrorsUrl skipwhite
26 + \ nextgroup=GentooMirrorsHttpUrl,GentooMirrorsHttpsUrl,GentooMirrorsFtpUrl skipwhite
27 +syn region GentooMirrorsHttpUrl contained start=/http:\/\// end=/\(\s\)\@=\|$/
28 + \ nextgroup=GentooMirrorsHttpUrl,GentooMirrorsHttpsUrl,GentooMirrorsFtpUrl skipwhite
29 +syn region GentooMirrorsHttpsUrl contained start=/https:\/\// end=/\(\s\)\@=\|$/
30 + \ nextgroup=GentooMirrorsHttpUrl,GentooMirrorsHttpsUrl,GentooMirrorsFtpUrl skipwhite
31 +syn region GentooMirrorsFtpUrl contained start=/ftp:\/\// end=/\(\s\)\@=\|$/
32 + \ nextgroup=GentooMirrorsHttpUrl,GentooMirrorsHttpsUrl,GentooMirrorsFtpUrl skipwhite
33
34 hi def link GentooMirrorsAtom Identifier
35 -hi def link GentooMirrorsUrl String
36 +hi def link GentooMirrorsHttpUrl String
37 +hi def link GentooMirrorsHttpsUrl Keyword
38 +hi def link GentooMirrorsFtpUrl Special
39
40 let b:current_syntax = "gentoo-mirrors"