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 C3BC3138334 for ; Tue, 21 Aug 2018 08:02:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43D96E0891; Tue, 21 Aug 2018 08:02:46 +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 158B3E0891 for ; Tue, 21 Aug 2018 08:02:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 CB28B335D4F for ; Tue, 21 Aug 2018 08:02:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B45973B8 for ; Tue, 21 Aug 2018 08:02:41 +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: <1534838306.76c9ab7ff4535cb2cfb3d38d40adc7e7f87f96b8.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: syntax/ X-VCS-Repository: proj/gentoo-syntax X-VCS-Files: syntax/gentoo-package-keywords.vim X-VCS-Directories: syntax/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 76c9ab7ff4535cb2cfb3d38d40adc7e7f87f96b8 X-VCS-Branch: master Date: Tue, 21 Aug 2018 08:02:41 +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-Archives-Salt: 7b7c3726-b488-4fcb-b749-bc30a8339b98 X-Archives-Hash: 5f747594c060feb76ee3feead2f027b3 commit: 76c9ab7ff4535cb2cfb3d38d40adc7e7f87f96b8 Author: Michał Górny gentoo org> AuthorDate: Tue Aug 21 07:58:26 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Aug 21 07:58:26 2018 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=76c9ab7f syntax/gentoo-package-keywords: Use distinct highlights for st/~/** syntax/gentoo-package-keywords.vim | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/syntax/gentoo-package-keywords.vim b/syntax/gentoo-package-keywords.vim index 85bc35b..95bdeeb 100644 --- a/syntax/gentoo-package-keywords.vim +++ b/syntax/gentoo-package-keywords.vim @@ -18,10 +18,17 @@ endif runtime syntax/gentoo-package-common.vim -syn match GentooPackageKeywordsKeyword contained /-\?[-~]\?\([a-z0-9\-]\+\|\*\)/ - \ nextgroup=GentooPackageKeywordsKeyword skipwhite -syn cluster GentooPackagePostAtom contains=GentooPackageKeywordsKeyword +syn match GentooPackageKeywordsStableKeyword contained /-\?\([a-z0-9\-]\+\|\*\)/ + \ nextgroup=@GentooPackagePostAtom skipwhite +syn match GentooPackageKeywordsKeyword contained /-\?\~\([a-z0-9\-]\+\|\*\)/ + \ nextgroup=@GentooPackagePostAtom skipwhite +syn match GentooPackageKeywordsAllKeyword contained /-\?\*\*/ + \ nextgroup=@GentooPackagePostAtom skipwhite +syn cluster GentooPackagePostAtom contains=GentooPackageKeywordsKeyword, + \ GentooPackageKeywordsStableKeyword,GentooPackageKeywordsAllKeyword hi def link GentooPackageKeywordsKeyword Keyword +hi def link GentooPackageKeywordsStableKeyword Special +hi def link GentooPackageKeywordsAllKeyword Type let b:current_syntax = "gentoo-package-keywords"