OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 02-Feb-2004 17:20:40
Branch: HEAD Handle: 2004020216204000
Modified files:
openpkg-src/vim vim.patch
Log:
visually recognize new RPM features
Summary:
Revision Changes Path
1.3 +13 -3 openpkg-src/vim/vim.patch
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/vim/vim.patch
============================================================================
$ cvs diff -u -r1.2 -r1.3 vim.patch
--- openpkg-src/vim/vim.patch 7 Oct 2003 09:16:46 -0000 1.2
+++ openpkg-src/vim/vim.patch 2 Feb 2004 16:20:40 -0000 1.3
@@ -1,8 +1,9 @@
The following patch adjust the RPM .spec syntax highlighting
a little bit to better highlight OpenPKG RPM .spec files.
---- vim62/runtime/syntax/spec.vim.orig Tue Oct 7 10:49:40 2003
-+++ vim62/runtime/syntax/spec.vim Tue Oct 7 11:08:22 2003
+Index: vim62/runtime/syntax/spec.vim
+--- vim62/runtime/syntax/spec.vim.orig 2003-05-11 20:20:37.000000000 +0200
++++ vim62/runtime/syntax/spec.vim 2004-02-02 16:43:25.000000000 +0100
@@ -83,7 +83,7 @@
"One line macros - valid in all ScriptAreas
@@ -12,12 +13,21 @@
syn region specSectionMacroBracketArea oneline matchgroup=specSectionMacro
start='^%{\(configure\|GNUconfigure\|find_lang\|makeinstall\)}' end='$'
contains=specCommandOpts,specMacroIdentifier
"%% Files Section %%
+@@ -105,7 +105,7 @@
+ "%% PreAmble Section %%
+ "Copyright and Serial were deprecated by License and Epoch
+ syn region specPreAmbleDeprecated oneline matchgroup=specError
start='^\(Copyright\|Serial\)' end='$'
contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
+-syn region specPreAmble oneline matchgroup=specCommand
start='^\(Prereq\|Summary\|Name\|Version\|Packager\|Requires\|Icon\|URL\|Source\d*\|Patch\d*\|Prefix\|Packager\|Group\|License\|Release\|BuildRoot\|Distribution\|Vendor\|Provides\|ExclusiveArch\|ExcludeArch\|ExclusiveOS\|Obsoletes\|BuildArch\|BuildArchitectures\|BuildRequires\|BuildConflicts\|BuildPreReq\|Conflicts\|AutoRequires\|AutoReq\|AutoReqProv\|AutoProv\|Epoch\)'
end='$'
contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
++syn region specPreAmble oneline matchgroup=specCommand
start='^\(Prereq\|Summary\|Name\|Version\|Packager\|Requires\|Icon\|URL\|Source\d*\|Patch\d*\|Prefix\|Packager\|Group\|License\|Release\|BuildRoot\|Distribution\|Class\|Vendor\|Provides\|ExclusiveArch\|ExcludeArch\|ExclusiveOS\|Obsoletes\|BuildArch\|BuildArchitectures\|BuildRequires\|BuildConflicts\|BuildPreReq\|Conflicts\|AutoRequires\|AutoReq\|AutoReqProv\|AutoProv\|Epoch\)'
end='$'
contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
+
+ "%% Description Section %%
+ syn region specDescriptionArea matchgroup=specSection start='^%description'
end='^%'me=e-1
contains=specDescriptionOpts,specEmail,specURL,specNumber,specMacroIdentifier,specComment
@@ -114,7 +114,7 @@
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\|pre\|postun\|preun\|post\)\>'
skip='^%{\|^%\(define\|patch\d*\|configure\|GNUconfigure\|setup\|find_lang\|makeinstall\)\>'
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\|build\|install\|clean\|pre\|postun\|preun\|post\)\>'
skip='^%{\|^%\(option\|define\|patch\d*\|configure\|GNUconfigure\|setup\|find_lang\|makeinstall\)\>'
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='^%\(track\|prep\|build\|install\|check\|clean\|pre\|postun\|preun\|post\|test\)\>'
skip='^%{\|^%\(option\|define\|patch\d*\|configure\|GNUconfigure\|setup\|find_lang\|makeinstall\)\>'
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
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]