[pacman-dev] [PATCH] contrib/PKGBUILD.vim: handle arch suffixes with keywords

Johannes Löthberg johannes at kyriasis.com
Wed Dec 23 20:54:47 UTC 2015


On 23/12, genml+pacman-dev at thequod.de wrote:
>From: Daniel Hahler <git at thequod.de>
>
>---
> contrib/PKGBUILD.vim | 26 +++++++++++++-------------
> 1 file changed, 13 insertions(+), 13 deletions(-)
>
>diff --git a/contrib/PKGBUILD.vim b/contrib/PKGBUILD.vim
>index 35ca6bd..8a9f411 100644
>--- a/contrib/PKGBUILD.vim
>+++ b/contrib/PKGBUILD.vim
>@@ -93,37 +93,37 @@ syn match pbValidGroups /\([[:alnum:]]\|+\|-\|_\)*/ contained
> syn region pbGroupsGroup start=/^groups=(/ end=/)/ contains=pb_k_groups,pbValidGroups,shDoubleQuote,shSingleQuote
>
> " depends
>-syn keyword pb_k_depends depends contained
>+syn keyword pb_k_depends depends depends_i686 depends_x86_64 contained
> syn match pbValidDepends /\([[:alnum:]]\|+\|-\|_\)*/ contained
> syn region pbDependsGroup start=/^depends=(/ end=/)/ contains=pb_k_depends,pbValidDepends,shDoubleQuote,shSingleQuote
>

Issue is that pacman is distro agnostic, and other distributions support 
eg ARM. Is there any way to make it match all possible ones without 
hardcoding them?

-- 
Sincerely,
  Johannes Löthberg
  PGP Key ID: 0x50FB9B273A9D0BB5
  https://theos.kyriasis.com/~kyrias/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1768 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20151223/f984ea5c/attachment.asc>


More information about the pacman-dev mailing list