Loading ...
Sorry, an error occurred while loading the content.
 

Re: rpm spec syntax: add trigger* sections

Expand Messages
  • Bram Moolenaar
    ... Copied to maintainer. Donovan, can you send me an updated version, also with updated date in the header? -- Time is an illusion. Lunchtime doubly so. --
    Message 1 of 2 , Sep 30, 2011
      Dan Kenigsberg wrote:

      > RPM .spec files have optional and less-known sections defining scriptlet to be
      > run when foreign packages are installed or removed. Let's color their headers
      > green.
      >
      > diff -r 5e84f6567623 -r 963d0dedc37f runtime/syntax/spec.vim
      > --- a/runtime/syntax/spec.vim Wed Sep 21 20:09:42 2011 +0200
      > +++ b/runtime/syntax/spec.vim Tue Sep 27 10:27:06 2011 +0300
      > @@ -113,7 +113,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\|trigger\(un\|in\|postun\)\)\>' 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
      >
      > "%% Changelog Section %%
      > syn region specChangelogArea matchgroup=specSection start='^%changelog' end='^%'me=e-1 contains=specEmail,specURL,specWeekday,specMonth,specNumber,specComment,specLicense

      Copied to maintainer. Donovan, can you send me an updated version, also
      with updated date in the header?

      --
      Time is an illusion. Lunchtime doubly so.
      -- Ford Prefect, in Douglas Adams'
      "The Hitchhiker's Guide to the Galaxy"

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.