r314 - in trunk/vim/debian: . patches

Stefano Zacchiroli zack at costa.debian.org
Sat Sep 24 09:06:33 UTC 2005


Author: zack
Date: 2005-09-24 09:06:32 +0000 (Sat, 24 Sep 2005)
New Revision: 314

Added:
   trunk/vim/debian/patches/145_fortran.vim.diff
Modified:
   trunk/vim/debian/changelog
Log:
fix for fortran's matchit support


Modified: trunk/vim/debian/changelog
===================================================================
--- trunk/vim/debian/changelog	2005-09-21 08:33:57 UTC (rev 313)
+++ trunk/vim/debian/changelog	2005-09-24 09:06:32 UTC (rev 314)
@@ -17,6 +17,8 @@
       highlighting. (closes: #315902)
     + Added patch 144_scripts.vim.diff, which adds support for
       highlighting tla diffs. (closes: #305677)
+    + Added patch 145_fortran.vim.diff, which fixes a matchit bug with
+      Fortran's "module procedure". (closes: #308865)
     + Added patch 203_zh_TW.UTF8.po.diff, which fixes a translation
       error in locale zh_TW.UTF-8. (closes: #319420)
 

Added: trunk/vim/debian/patches/145_fortran.vim.diff
===================================================================
--- trunk/vim/debian/patches/145_fortran.vim.diff	2005-09-21 08:33:57 UTC (rev 313)
+++ trunk/vim/debian/patches/145_fortran.vim.diff	2005-09-24 09:06:32 UTC (rev 314)
@@ -0,0 +1,20 @@
+diff -urN vim63/runtime/ftplugin/fortran.vim vim63.new/runtime/ftplugin/fortran.vim
+--- vim63/runtime/ftplugin/fortran.vim	2003-05-18 20:20:26.000000000 +0200
++++ vim63.new/runtime/ftplugin/fortran.vim	2005-09-24 10:53:44.000000000 +0200
+@@ -83,6 +83,7 @@
+   let s:notend = '\%(\<end\s\+\)\@<!'
+   let s:notselect = '\%(\<select\s\+\)\@<!'
+   let s:notelse = '\%(\<end\s\+\|\<else\s\+\)\@<!'
++  let s:notprocedure = '\%(\s\+procedure\>\)\@!'
+   let b:match_ignorecase = 1
+   let b:match_words =
+     \ '\<select\s*case\>:' . s:notselect. '\<case\>:\<end\s*select\>,' .
+@@ -95,7 +96,7 @@
+     \ s:notend . '\<interface\>:\<end\s*interface\>,'.
+     \ s:notend . '\<subroutine\>:\<end\s*subroutine\>,'.
+     \ s:notend . '\<function\>:\<end\s*function\>,'.
+-    \ s:notend . '\<module\>:\<end\s*module\>,'.
++    \ s:notend . '\<module\>' . s:notprocedure . ':\<end\s*module\>,'.
+     \ s:notend . '\<program\>:\<end\s*program\>'
+ endif
+ 




More information about the pkg-vim-maintainers mailing list