Bug#305677: vim-common: syntax highligt tla diffs

Guido Guenther Guido Guenther <agx@debian.org>, 305677@bugs.debian.org
Thu, 21 Apr 2005 12:22:51 +0200


Package: vim-common
Version: 1:6.3-068+4
Severity: wishlist

Hi,
to get syntax highlighting for arch generated diffs 
(using tla changes --diffs | view -) 
I had to add:

--- /tmp/scripts.vim	2005-04-21 12:13:24.000000000 +0200
+++ scripts.vim	2005-04-21 12:14:38.000000000 +0200
@@ -175,6 +175,7 @@
   elseif s:line1 =~ '^\(diff\>\|Only in \|\d\+\(,\d\+\)\=[cda]\d\+\>\|# It was generated by makepatch \|Index:\s\+\f\+$\|===== \f\+ \d\+\.\d\+ vs edited\|==== //\f\+#\d\+\)'
 	\ || (s:line1 =~ '^--- ' && s:line2 =~ '^+++ ')
 	\ || (s:line1 =~ '^\*\*\* ' && s:line2 =~ '^--- ')
+	\ || (s:line1 =~ '^\* looking for ' && s:line2 =~ '^\* comparing to ')
     set ft=diff
 
     " PostScript Files (must have %!PS as the first line, like a2ps output)

Can this be applied?
Cheers,
 -- Guido


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.11.6-agx0
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages vim-common depends on:
ii  vim                          1:6.3-068+4 Vi IMproved - enhanced vi editor

-- no debconf information