commit:     1cf5f4e1a4fa7f745b16e118a48e060d0f98ec2b
Author:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Mar 11 16:50:52 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Mar 11 20:41:48 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=1cf5f4e1

gentoo-package-common: loosen email regexp

Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 syntax/gentoo-package-common.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syntax/gentoo-package-common.vim b/syntax/gentoo-package-common.vim
index fb258c5..1d17d59 100644
--- a/syntax/gentoo-package-common.vim
+++ b/syntax/gentoo-package-common.vim
@@ -13,7 +13,7 @@ runtime syntax/gentoo-common.vim
 syn region GentooPackageComment start=/#/ end=/$/
     \ contains=GentooPackageEmail,GentooPackageDate,GentooBug
 
-syn match  GentooPackageEmail contained 
/<[a-zA-Z0-9\-\_]\+@[a-zA-Z0-9\-\_\.]\+>/
+syn match  GentooPackageEmail contained 
/<[^<>@[:space:]]\+@[^<>@.[:space:]]\+\.[^<>@[:space:]]\+>/
 syn match  GentooPackageDate  contained 
/(\(\d\d\?\s\w\+\|\w\+\s\d\d\?\)\s\d\{4\})/
 
 syn match  GentooPackageAtom /^[\ \t]*[^ \t\n#]\+\S*\/\S\+/

Reply via email to