[[PATCH] vim: add validpgpkeys to valid vim syntax for PKGBUILD's

Johannes Löthberg johannes at kyriasis.com
Sat Dec 14 00:06:00 UTC 2019


Excerpts from Jelle van der Waa's message of December 9, 2019 22:16:
> From: Jelle van der Waa <jelle at vdwaa.nl>
> 
> Signed-off-by: Jelle van der Waa <jelle at vdwaa.nl>
> ---
>  src/vim/syntax/PKGBUILD.vim | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/vim/syntax/PKGBUILD.vim b/src/vim/syntax/PKGBUILD.vim
> index 781cd9d..070161a 100644
> --- a/src/vim/syntax/PKGBUILD.vim
> +++ b/src/vim/syntax/PKGBUILD.vim
> @@ -227,6 +227,11 @@ hi def link pbB2Quotes Keyword
>  hi def link pbB2Hash Error
>  hi def link pbValidB2sums  Number
>  
> +" validpgpkeys
> +syn keyword pb_k_validpgpkeys validpgpkeys contained
> +syn match pbValidPGPKeys /\([[:alnum:]]\)*/ contained
> +syn region pbValidPGPKeysGroup start=/^validpgpkeys=(/ end=/)/ contains=pb_k_validpgpkeys,pbValidPGPKeys,shDoubleQuote,shSingleQuote
> +
>  " options
>  syn keyword pb_k_options options contained
>  syn match pbOptions /\(no\)\?\(strip\|docs\|libtool\|emptydirs\|zipman\|purge\|distcc\|color\|ccache\|check\|sign\|makeflags\|buildflags\)/ contained
> @@ -303,6 +308,8 @@ hi def link pb_k_changelog pbKeywords
>  hi def link pb_k_source pbKeywords
>  hi def link pbIllegalSource Error
>  
> +hi def link pb_k_validpgpkeys pbKeywords
> +
>  hi def link pb_k_md5sums pbKeywords
>  hi def link pbIllegalMd5sums Error
>  
> -- 
> 2.24.0
> 

Applied, thanks!
-- 
Sincerely,
  Johannes Löthberg :: SA0DEM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 1727 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-contrib/attachments/20191214/694ea5c3/attachment.sig>


More information about the pacman-contrib mailing list