runtime(spec): add new items to scripts section in syntax plugin

Commit: 
https://github.com/vim/vim/commit/cb3691811be93b2c49179649c684d6ce2141a46f
Author: Maxwell G <maxw...@gtmx.me>
Date:   Wed May 8 20:27:58 2024 +0200

    runtime(spec): add new items to scripts section in syntax plugin
    
    - %generate_buildrequires — added in RPM 4.15
    - %conf — added in RPM 4.18
    
    closes: #14723
    
    Ref: 
https://rpm-software-management.github.io/rpm/manual/spec.html#build-scriptlets
    
    Signed-off-by: author
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/spec.vim b/runtime/syntax/spec.vim
index 12ce8d5ac..4cb3a343e 100644
--- a/runtime/syntax/spec.vim
+++ b/runtime/syntax/spec.vim
@@ -111,7 +111,7 @@ syn region specDescriptionArea matchgroup=specSection 
start='^%description' end=
 syn region specPackageArea matchgroup=specSection start='^%package' 
end='^%'me=e-1 contains=specPackageOpts,specPreAmble,specComment
 
 "%% Scripts Section %%
-syn region specScriptArea matchgroup=specSection 
start='^%\(prep\|build\|install\|clean\|check\|pre\|postun\|preun\|post\|posttrans\)\>'
 
skip='^%{\|^%\(define\|patch\d*\|configure\|GNUconfigure\|setup\|autosetup\|autopatch\|find_lang\|make_build\|makeinstall\|make_install\)\>'
 end='^%'me=e-1 
contains=specSpecialVariables,specVariables,@specCommands,specVariables,shDo,shFor,shCaseEsac,specNoNumberHilite,specCommandOpts,shComment,shIf,specSpecialChar,specMacroIdentifier,specSectionMacroArea,specSectionMacroBracketArea,shOperator,shQuote1,shQuote2
+syn region specScriptArea matchgroup=specSection 
start='^%\(prep\|generate_buildrequires\|conf\|build\|install\|clean\|check\|pre\|postun\|preun\|post\|posttrans\)\>'
 
skip='^%{\|^%\(define\|patch\d*\|configure\|GNUconfigure\|setup\|autosetup\|autopatch\|find_lang\|make_build\|makeinstall\|make_install\)\>'
 end='^%'me=e-1 
contains=specSpecialVariables,specVariables,@specCommands,specVariables,shDo,shFor,shCaseEsac,specNoNumberHilite,specCommandOpts,shComment,shIf,specSpecialChar,specMacroIdentifier,specSectionMacroArea,specSectionMacroBracketArea,shOperator,shQuote1,shQuote2
 
 "%% Changelog Section %%
 syn region specChangelogArea matchgroup=specSection start='^%changelog' 
end='^%'me=e-1 
contains=specEmail,specURL,specWeekday,specMonth,specNumber,specComment,specLicense

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1s4m3M-006XmZ-GW%40256bit.org.

Raspunde prin e-mail lui