aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Vyalkova <cyber+gentoo@sysrq.in>2023-03-11 20:18:52 +0500
committerMichał Górny <mgorny@gentoo.org>2023-03-11 21:41:49 +0100
commit2e5d9f8dfacbabb2a929277e8cf0cb83b40aaf60 (patch)
treeee8c9134e5588d5b985fe535d113244c567d4dcc
parentgentoo-package-common: loosen email regexp (diff)
downloadgentoo-syntax-2e5d9f8dfacbabb2a929277e8cf0cb83b40aaf60.tar.gz
gentoo-syntax-2e5d9f8dfacbabb2a929277e8cf0cb83b40aaf60.tar.bz2
gentoo-syntax-2e5d9f8dfacbabb2a929277e8cf0cb83b40aaf60.zip
glep: loosen email regexp
Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Closes: https://github.com/gentoo/gentoo-syntax/pull/56 Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--syntax/glep.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax/glep.vim b/syntax/glep.vim
index f1ca81c..f72077f 100644
--- a/syntax/glep.vim
+++ b/syntax/glep.vim
@@ -36,7 +36,7 @@ syn region glepHeaders start=/\%^\(.*:\)\@=/ end=/^$/ contains=glepHeaderKey
syn region glepTripleDash start=/\%^---$/ end=/^---$/ contains=glepHeaderKey
syn region glepHeaderKey contained start=/^[A-Za-z0-9]/ end=/:/ nextgroup=glepHeaderValue skipwhite
syn region glepHeaderValue contained start=/\S/ end=/^\S\|^$/me=e-1 contains=glepHeaderEmail,glepHeaderCVSVar
-syn match glepHeaderEmail contained /<[-a-zA-Z0-9\_\.]\+@[-a-zA-Z0-9\_\.]\+>/
+syn match glepHeaderEmail contained /<[^<>@[:space:]]\+@[^<>@.[:space:]]\+\.[^<>@[:space:]]\+>/
syn region glepHeaderCVSVar contained start=/\$\S\+:/ end=/\$/
syn keyword glepTODO TODO FIXME