runtime(spec): add more local macro names according to rpm 4.20
Commit:
https://github.com/vim/vim/commit/adfeb4ad95ca2522b966fde1bb0d8ccc8c1dc8a8
Author: fundawang <[email protected]>
Date: Mon May 5 20:12:40 2025 +0200
runtime(spec): add more local macro names according to rpm 4.20
closes: https://github.com/vim/vim/issues/17258
Signed-off-by: fundawang <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/syntax/spec.vim b/runtime/syntax/spec.vim
index 730a0b8cc..944bdcaa3 100644
--- a/runtime/syntax/spec.vim
+++ b/runtime/syntax/spec.vim
@@ -5,6 +5,7 @@
" Former Maintainer: Donovan Rebbechi [email protected] (until March 2014)
" Last Change: 2020 May 25
" 2024 Sep 10 by Vim Project: add file triggers support, #15569
+" 2025 May 05 by Vim Project: update for rpm 4.2 #17258
" quit when a syntax file was already loaded
if exists("b:current_syntax")
@@ -72,7 +73,7 @@ syn keyword specMacroNameOther contained buildroot
buildsubdir distribution dist
syn match specMacroNameOther contained '\<\(PATCH\|SOURCE\)\d*\>'
"valid _macro names from /usr/lib/rpm/macros
-syn keyword specMacroNameLocal contained _arch _binary_payload _bindir _build
_build_alias _build_cpu _builddir _build_os _buildshell _buildsubdir
_build_vendor _bzip2bin _datadir _dbpath _dbpath_rebuild _defaultdocdir _docdir
_excludedocs _exec_prefix _fixgroup _fixowner _fixperms _ftpport _ftpproxy
_gpg_path _gzipbin _host _host_alias _host_cpu _host_os _host_vendor _httpport
_httpproxy _includedir _infodir _install_langs _install_script_path
_instchangelog _langpatt _lib _libdir _libexecdir _localstatedir _mandir
_netsharedpath _oldincludedir _os _pgpbin _pgp_path _prefix
_preScriptEnvironment _provides _rpmdir _rpmfilename _sbindir _sharedstatedir
_signature _sourcedir _source_payload _specdir _srcrpmdir _sysconfdir _target
_target_alias _target_cpu _target_os _target_platform _target_vendor _timecheck
_tmppath _topdir _usr _unitdir _usrsrc _var _vendor
+syn keyword specMacroNameLocal contained _arch _binary_payload _bindir _build
_build_alias _build_cpu _build_os _build_vendor _builddir _buildshell
_buildsubdir _bzip2bin _datadir _dbpath _dbpath_rebuild _defaultdocdir
_defaultlicensedir _docdir _excludedocs _exec_prefix _fixgroup _fixowner
_fixperms _ftpport _ftpproxy _gpg_path _group_path _gzipbin _host _host_alias
_host_cpu _host_os _host_vendor _httpport _httpproxy _iconsdir _includedir
_infodir _install_langs _install_script_path _instchangelog _keyring
_keyringpath _langpatt _lib _libdir _libexecdir _localstatedir _mandir
_netsharedpath _oldincludedir _os _passwd_path _pgp_path _pgpbin
_preScriptEnvironment _prefix _provides _rpmconfigdir _rpmdir _rpmfilename
_rpmformat _rpmluadir _rpmmacrodir _sbindir _sharedstatedir _signature
_source_payload _sourcedir _specdir _srcrpmdir _sysconfdir _sysusersdir _target
_target_alias _target_cpu _target_os _target_platform _target_vendor _timecheck
_tmppath _topdir _unitdir _usr _usrsrc _var _vendor
"------------------------------------------------------------------------------
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uC0LP-009taZ-6y%40256bit.org.