From d09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 30 Sep 2019 09:27:46 +0200 Subject: gentoo-mirrors: Support HTTPS, add more colors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- syntax/gentoo-mirrors.vim | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/syntax/gentoo-mirrors.vim b/syntax/gentoo-mirrors.vim index 686465b..66071d3 100644 --- a/syntax/gentoo-mirrors.vim +++ b/syntax/gentoo-mirrors.vim @@ -19,11 +19,17 @@ endif runtime syntax/gentoo-package-common.vim syn match GentooMirrorsAtom /^[^# \t]\+/ - \ nextgroup=GentooMirrorsUrl skipwhite -syn region GentooMirrorsUrl contained start=/\(http\|ftp\):\/\// end=/\(\s\)\@=\|$/ - \ nextgroup=GentooMirrorsUrl skipwhite + \ nextgroup=GentooMirrorsHttpUrl,GentooMirrorsHttpsUrl,GentooMirrorsFtpUrl skipwhite +syn region GentooMirrorsHttpUrl contained start=/http:\/\// end=/\(\s\)\@=\|$/ + \ nextgroup=GentooMirrorsHttpUrl,GentooMirrorsHttpsUrl,GentooMirrorsFtpUrl skipwhite +syn region GentooMirrorsHttpsUrl contained start=/https:\/\// end=/\(\s\)\@=\|$/ + \ nextgroup=GentooMirrorsHttpUrl,GentooMirrorsHttpsUrl,GentooMirrorsFtpUrl skipwhite +syn region GentooMirrorsFtpUrl contained start=/ftp:\/\// end=/\(\s\)\@=\|$/ + \ nextgroup=GentooMirrorsHttpUrl,GentooMirrorsHttpsUrl,GentooMirrorsFtpUrl skipwhite hi def link GentooMirrorsAtom Identifier -hi def link GentooMirrorsUrl String +hi def link GentooMirrorsHttpUrl String +hi def link GentooMirrorsHttpsUrl Keyword +hi def link GentooMirrorsFtpUrl Special let b:current_syntax = "gentoo-mirrors" -- cgit v1.2.3-18-g5258