public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: syntax/
Date: Tue, 21 Aug 2018 08:02:41 +0000 (UTC)	[thread overview]
Message-ID: <1534836191.03db9c991553a1e2db9df635bc973fa320f9d615.mgorny@gentoo> (raw)

commit:     03db9c991553a1e2db9df635bc973fa320f9d615
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 21 07:23:11 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 21 07:23:11 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=03db9c99

syntax: Move atom definition into gentoo-package-common

 syntax/gentoo-package-common.vim     | 4 ++++
 syntax/gentoo-package-keywords.vim   | 4 +---
 syntax/gentoo-package-license.vim    | 4 +---
 syntax/gentoo-package-mask.vim       | 4 ----
 syntax/gentoo-package-properties.vim | 4 +---
 syntax/gentoo-package-use.vim        | 6 ++----
 6 files changed, 9 insertions(+), 17 deletions(-)

diff --git a/syntax/gentoo-package-common.vim b/syntax/gentoo-package-common.vim
index 1e8091e..fe234c7 100644
--- a/syntax/gentoo-package-common.vim
+++ b/syntax/gentoo-package-common.vim
@@ -16,6 +16,10 @@ syn region GentooPackageComment start=/#/ end=/$/
 syn match  GentooPackageEmail contained /<[a-zA-Z0-9\-\_]\+@[a-zA-Z0-9\-\_\.]\+>/
 syn match  GentooPackageDate  contained /(\(\d\d\?\s\w\+\|\w\+\s\d\d\?\)\s\d\{4\})/
 
+syn match  GentooPackageAtom /^[\ \t]*[^ \t\n#]\+\S\+\/\S\+/
+    \ nextgroup=@GentooPackagePostAtom skipwhite
+
 hi def link GentooPackageComment          Comment
 hi def link GentooPackageEmail            Special
 hi def link GentooPackageDate             Number
+hi def link GentooPackageAtom             Identifier

diff --git a/syntax/gentoo-package-keywords.vim b/syntax/gentoo-package-keywords.vim
index 4315d91..85bc35b 100644
--- a/syntax/gentoo-package-keywords.vim
+++ b/syntax/gentoo-package-keywords.vim
@@ -18,12 +18,10 @@ endif
 
 runtime syntax/gentoo-package-common.vim
 
-syn match  GentooPackageKeywordsAtom /^[\ \t]*[^ \t\n#]\+\S\+\/\S\+/
-    \ nextgroup=GentooPackageKeywordsKeyword skipwhite
 syn match  GentooPackageKeywordsKeyword contained /-\?[-~]\?\([a-z0-9\-]\+\|\*\)/
     \ nextgroup=GentooPackageKeywordsKeyword skipwhite
+syn cluster GentooPackagePostAtom contains=GentooPackageKeywordsKeyword
 
-hi def link GentooPackageKeywordsAtom             Identifier
 hi def link GentooPackageKeywordsKeyword          Keyword
 
 let b:current_syntax = "gentoo-package-keywords"

diff --git a/syntax/gentoo-package-license.vim b/syntax/gentoo-package-license.vim
index 8764a66..7e64c73 100644
--- a/syntax/gentoo-package-license.vim
+++ b/syntax/gentoo-package-license.vim
@@ -18,12 +18,10 @@ endif
 
 runtime syntax/gentoo-package-common.vim
 
-syn match  GentooPackageLicenseAtom /^[^ \t\n#]\+\S\+\/\S\+/
-    \ nextgroup=GentooPackageLicenseLicense skipwhite
 syn match  GentooPackageLicenseLicense contained /-\?@\?\([a-zA-Z0-9\-_.+]\+\|\*\)/
     \ nextgroup=GentooPackageLicenseLicense skipwhite
+syn cluster GentooPackagePostAtom contains=GentooPackageLicenseLicense
 
-hi def link GentooPackageLicenseAtom             Identifier
 hi def link GentooPackageLicenseLicense          Keyword
 
 let b:current_syntax = "gentoo-package-license"

diff --git a/syntax/gentoo-package-mask.vim b/syntax/gentoo-package-mask.vim
index d08ec0e..1f4e75b 100644
--- a/syntax/gentoo-package-mask.vim
+++ b/syntax/gentoo-package-mask.vim
@@ -18,8 +18,4 @@ endif
 
 runtime syntax/gentoo-package-common.vim
 
-syn match  GentooPackageMaskAtom /^[^ \t\n#]\+\S\+\/\S\+/
-
-hi def link GentooPackageMaskAtom             Identifier
-
 let b:current_syntax = "gentoo-package-mask"

diff --git a/syntax/gentoo-package-properties.vim b/syntax/gentoo-package-properties.vim
index faf15ad..014381a 100644
--- a/syntax/gentoo-package-properties.vim
+++ b/syntax/gentoo-package-properties.vim
@@ -18,12 +18,10 @@ endif
 
 runtime syntax/gentoo-package-common.vim
 
-syn match  GentooPackagePropertiesAtom /^[^ \t\n#]\+\S\+\/\S\+/
-    \ nextgroup=GentooPackagePropertiesProperty skipwhite
 syn match  GentooPackagePropertiesProperty contained /-\?\([a-zA-Z0-9\-_]\+\|\*\)/
     \ nextgroup=GentooPackagePropertiesProperty skipwhite
+syn cluster GentooPackagePostAtom contains=GentooPackagePropertiesProperty
 
-hi def link GentooPackagePropertiesAtom             Identifier
 hi def link GentooPackagePropertiesProperty         Keyword
 
 let b:current_syntax = "gentoo-package-properties"

diff --git a/syntax/gentoo-package-use.vim b/syntax/gentoo-package-use.vim
index 7136467..30f0b95 100644
--- a/syntax/gentoo-package-use.vim
+++ b/syntax/gentoo-package-use.vim
@@ -18,9 +18,6 @@ endif
 
 runtime syntax/gentoo-package-common.vim
 
-syn match  GentooPackageUseAtom /^[^ \t\n#]\+\S\+\/\S\+/
-    \ nextgroup=GentooPackageUseUse,GentooPackageUseUnuse,
-    \ GentooPackageUseExpand skipwhite
 syn match  GentooPackageUseUse contained
     \ /[a-zA-Z0-9][a-zA-Z0-9\-_]*\(:\)\@!/
     \ nextgroup=GentooPackageUseUse,GentooPackageUseUnuse,
@@ -33,8 +30,9 @@ syn match  GentooPackageUseExpand contained
     \ /[a-zA-Z0-9][a-zA-Z0-9\-_]*:/
     \ nextgroup=GentooPackageUseUse,GentooPackageUseUnuse
     \ skipwhite
+syn cluster GentooPackagePostAtom contains=GentooPackageUseUse,
+    \ GentooPackageUseUnuse,GentooPackageUseExpand
 
-hi def link GentooPackageUseAtom             Identifier
 hi def link GentooPackageUseUse              Special
 hi def link GentooPackageUseUnuse            Keyword
 hi def link GentooPackageUseExpand           Statement


             reply	other threads:[~2018-08-21  8:02 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-21  8:02 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-29 14:15 [gentoo-commits] proj/gentoo-syntax:master commit in: syntax/ Michał Górny
2023-06-14 14:25 Michał Górny
2023-03-11 20:42 Michał Górny
2023-03-11 20:42 Michał Górny
2023-03-09  5:46 Michał Górny
2023-03-09  5:46 Michał Górny
2023-03-09  5:46 Michał Górny
2023-03-09  5:46 Michał Górny
2023-03-09  5:46 Michał Górny
2023-02-01  5:03 Michał Górny
2022-07-13  5:26 Michał Górny
2022-05-02 19:06 Michał Górny
2022-02-20 16:03 Michał Górny
2022-02-20 16:03 Michał Górny
2022-02-20 16:03 Michał Górny
2022-02-20 16:03 Michał Górny
2021-09-01 16:21 Michał Górny
2021-04-28  7:27 Michał Górny
2020-12-16 13:32 Michał Górny
2020-10-05 15:27 Michał Górny
2019-12-13 10:52 Michał Górny
2019-12-13  7:16 Michał Górny
2019-11-27  8:09 Michał Górny
2019-11-27  8:09 Michał Górny
2019-11-27  8:09 Michał Górny
2019-09-30  7:28 Michał Górny
2019-05-25  6:45 Michał Górny
2019-05-25  6:45 Michał Górny
2018-09-15 19:18 Michał Górny
2018-08-21  8:02 Michał Górny
2018-08-21  8:02 Michał Górny
2018-08-21  8:02 Michał Górny
2018-08-21  8:02 Michał Górny
2018-08-21  8:02 Michał Górny
2018-08-21  8:02 Michał Górny
2018-08-21  8:02 Michał Górny
2018-08-20 20:37 Michał Górny
2018-08-20 20:37 Michał Górny
2018-08-20 20:37 Michał Górny
2018-08-20 20:10 Michał Górny
2018-08-14 13:58 Michał Górny
2018-08-14 13:55 Michał Górny
2018-08-14 13:55 Michał Górny
2016-03-05 23:50 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2014-11-29 18:36 Tim Harder
2014-11-29  8:08 Tim Harder
2014-11-29  7:50 Tim Harder
2014-11-29  7:19 Tim Harder
2014-11-29  7:19 Tim Harder
2014-11-29  4:58 Tim Harder
2014-11-29  4:41 Tim Harder
2014-11-29  4:41 Tim Harder
2014-11-02  0:28 Tim Harder
2014-11-02  0:28 Tim Harder
2013-05-31  8:26 Tim Harder
2013-01-24 20:00 Tim Harder
2012-11-06 21:20 Christian Ruppert
2012-04-18 19:47 Christian Ruppert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1534836191.03db9c991553a1e2db9df635bc973fa320f9d615.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox