aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-09-30 09:27:46 +0200
committerMichał Górny <mgorny@gentoo.org>2019-09-30 09:27:46 +0200
commitd09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe (patch)
treee7844bdfab203a801efbe0cbff77da04d75f9ba2
parentnewebuild: Support acct-{group,user} categories (diff)
downloadgentoo-syntax-d09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe.tar.gz
gentoo-syntax-d09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe.tar.bz2
gentoo-syntax-d09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe.zip
gentoo-mirrors: Support HTTPS, add more colors
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--syntax/gentoo-mirrors.vim14
1 files 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"