commit:     d09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 30 07:27:46 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Sep 30 07:27:46 2019 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=d09e3a3c

gentoo-mirrors: Support HTTPS, add more colors

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 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"

Reply via email to