vim/vim-7.3-filetype_spec.patch
Ismail Dönmez c02ad73f91 - Updated to revision 1938, fixes the following problems
* Updating marks in a quickfix list is very slow when the list is long.
  * When waiting for a character is interrupted by receiving channel
    data and the first character of a mapping was typed, the mapping
    times out.
  * When receiving channel data 'updatetime' is not respected.
  * Wrong computation of remaining wait time in RealWaitForChar()
  * When umask is set to 0177 Vim can't create temp files.
  * GUI: When channel data is received the cursor blinking is interrupted.
  * Channel reading very long lines is slow.
  * balloon eval only gets the window number, not the ID.
  * Cannot easily get the window ID for a buffer.
  * Cannot get the window ID for a mouse click.
  * Cannot use a window ID where a window number is expected.
  * Invoking mark_adjust() when adding a new line below the last line
    is pointless.
  * Various typos, long lines and style mistakes.
  * User commands don't support modifiers.
  * GTK 3: cursor blinking doesn't work well.
  * Using CTRL-] in the help on "{address}." doesn't work.
  * Win32: the "Disabled" menu items would appear enabled.
  * No test for collapsing buffers for a channel.  Some text is lost.
  * When writing viminfo merging current history with history in viminfo
    may drop recent history entries.
  * Some compilers can't handle a double semicolon.
  * Collapsing channel buffers and searching for NL does not work properly.
  * Warnings from 64 bit compiler.
  * Netbeans uses uninitialzed pointer and freed memory.
  * Doubled semicolons.
  * Tests using external command to delete directory.

OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=372
2016-06-15 11:31:13 +00:00

36 lines
3.9 KiB
Diff

Index: vim-7.4.1938/runtime/filetype.vim
===================================================================
--- vim-7.4.1938.orig/runtime/filetype.vim
+++ vim-7.4.1938/runtime/filetype.vim
@@ -2065,7 +2065,7 @@ endfunc
" Spec (Linux RPM)
-au BufNewFile,BufRead *.spec setf spec
+au BufNewFile,BufRead *.spec,*.spec.in setf spec
" Speedup (AspenTech plant simulator)
au BufNewFile,BufRead *.speedup,*.spdata,*.spd setf spup
Index: vim-7.4.1938/runtime/syntax/spec.vim
===================================================================
--- vim-7.4.1938.orig/runtime/syntax/spec.vim
+++ vim-7.4.1938/runtime/syntax/spec.vim
@@ -105,7 +105,7 @@ syn case ignore
"%% 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\|Recommends\|Suggests\|Supplements\|Enhances\|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\|Recommends\|Suggests\|Supplements\|Enhances\|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\|Recommends\|Suggests\|Freshens\|EssentialFor\|Supplements\|Enhances\)' 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 specDescriptionArea matchgrou
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\|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\|build\|check\|install\|clean\|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