From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 277F5138335 for ; Mon, 30 Sep 2019 07:28:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 679ADE0837; Mon, 30 Sep 2019 07:28:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4EC73E0837 for ; Mon, 30 Sep 2019 07:28:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 40FDB34B6F5 for ; Mon, 30 Sep 2019 07:28:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 331947F8 for ; Mon, 30 Sep 2019 07:28:27 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1569828466.d09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: syntax/ X-VCS-Repository: proj/gentoo-syntax X-VCS-Files: syntax/gentoo-mirrors.vim X-VCS-Directories: syntax/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: d09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe X-VCS-Branch: master Date: Mon, 30 Sep 2019 07:28:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9fe601b2-1fc2-458f-a06f-fa7f49cc785d X-Archives-Hash: fd13fda5e0ca15693e3d38642078e95d commit: d09e3a3cf3b9c37b1cf0cd7e4952e24c46bfb9fe Author: Michał Górny gentoo org> AuthorDate: Mon Sep 30 07:27:46 2019 +0000 Commit: Michał Górny gentoo 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 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"