Bug#536770: vim-runtime: remind.vim syntax file not up-to-date

2009-07-13 Thread Tarlika Elisabeth Schmitz
Package: vim-runtime
Version: 1:7.1.314-3+lenny2
Severity: minor
Tags: patch



-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vim-runtime depends on:
ii  dpkg  1.14.25Debian package management system

Versions of packages vim-runtime recommends:
ii  vim-gnome [vim]   1:7.1.314-3+lenny2 Vi IMproved - enhanced vi editor -

vim-runtime suggests no packages.

-- no debconf information


There is a newer version of the syntax file for remind, 
/usr/share/vim/vim71/syntax/remind.vim, which can be found at 
http://erlug.linux.it/~da/vim/syntax/remind.vim.

The new syntax file (v 0.4) recognizes the FROM keyword, which was introduced 
with remind 3.01.00.

The patch I am submitting is simply a diff between version 0.3 of remind.vim 
and version 0.4 found at above address.
--- /usr/share/vim/vimcurrent/syntax/remind.vim 2008-10-17 19:11:29.0 
+0100
+++ /home/tarlika/.vim/syntax/remind.vim2009-07-13 11:33:16.0 
+0100
@@ -1,11 +1,12 @@
  Vim syntax file
  Language:Remind
  Maintainer:  Davide Alberani albera...@libero.it
- Last Change: 10 May 2006
- Version: 0.3
+ Last Change: 25 Jun 2007
+ Version: 0.4
  URL: http://erlug.linux.it/~da/vim/syntax/remind.vim
 
- remind is a sophisticated reminder service; you can download remind from:
+ remind is a sophisticated reminder service
+ you can download remind from:
  http://www.roaringpenguin.com/penguin/open_source_remind.php
 
 if version  600
@@ -18,21 +19,27 @@
 syn case ignore
 
 syn keyword remindCommands REM OMIT SET FSET UNSET
-syn keyword remindExpiry   UNTIL SCANFROM SCAN WARN SCHED
+syn keyword remindExpiry   UNTIL FROM SCANFROM SCAN WARN SCHED
 syn keyword remindTag  PRIORITY TAG
 syn keyword remindTimedAT DURATION
 syn keyword remindMove ONCE SKIP BEFORE AFTER
-syn keyword remindSpecial  INCLUDE INC BANNER PUSH-OMIT-CONTEXT PUSH 
CLEAR-OMIT-CONTEXT CLEAR POP-OMIT-CONTEXT POP
+syn keyword remindSpecial  INCLUDE INC BANNER PUSH-OMIT-CONTEXT PUSH 
CLEAR-OMIT-CONTEXT CLEAR POP-OMIT-CONTEXT POP COLOR
 syn keyword remindRun  MSG MSF RUN CAL SATISFY SPECIAL PS PSFILE SHADE 
MOON
 syn keyword remindConditional  IF ELSE ENDIF IFTRIG
+syn keyword remindDebugDEBUG DUMPVARS DUMP ERRMSG FLUSH 
PRESERVE
 syn match remindComment#.*$
 syn region remindStringstart=+'+ end=+'+ skip=+\|\\'+ 
oneline
 syn region remindStringstart=++ end=++ skip=+\|\\+ 
oneline
-syn keyword remindDebugDEBUG DUMPVARS DUMP ERRMSG FLUSH 
PRESERVE
 syn match remindVar\$[_a-zA-Z][_a-zA-Z0-9]*
 syn match remindSubst  %[^ ]
 syn match remindAdvanceNumber  \(\*\|+\|-\|++\|--\)[0-9]\+
- This will match trailing whitespaces that seem to break rem2ps.
+ XXX: divide separators used for dates from the ones used by times?
+syn match remindDateSeparators [/:@\.-] contained
+syn match remindTimes  [0-9]\{1,2}[:\.][0-9]\{1,2} 
contains=remindDateSeparators
+ TODO: why not match only valid dates? (ok, checking for 02/29 would be
+   impossible, but at least check for valid months and times).
+syn match remindDates  
'[0-9]\{4}[/-][0-9]\{1,2}[/-][0-9]\{1,2}\(@[0-9]\{1,2}[:\.][0-9]\{1,2}\)\?' 
contains=remindDateSeparators
+ This will match trailing whitespaces that seem to broke rem2ps.
  Courtesy of Michael Dunn.
 syn match remindWarningdisplay excludenl \S\s\+$ms=s+1
 
@@ -54,6 +61,9 @@
   HiLink remindRun Function
   HiLink remindConditional Conditional
   HiLink remindComment Comment
+  HiLink remindDateSeparators  Comment
+  HiLink remindDates   String
+  HiLink remindTimes   String
   HiLink remindString  String
   HiLink remindDebug   Debug
   HiLink remindVar Identifier
@@ -67,3 +77,4 @@
 let b:current_syntax = remind
 
  vim: ts=8 sw=2
+


Bug#536770: vim-runtime: remind.vim syntax file not up-to-date

2009-07-13 Thread James Vega
found 536770 vim/1:7.1.314-3
tag 536770 - patch
thanks

On Mon, Jul 13, 2009 at 12:33:45PM +0100, Tarlika Elisabeth Schmitz wrote:
 There is a newer version of the syntax file for remind,
 /usr/share/vim/vim71/syntax/remind.vim, which can be found at
 http://erlug.linux.it/~da/vim/syntax/remind.vim.

The upstream maintainer of the syntax file should push their changes to
Bram so everyone benefits from the new version.  I regularly sync with
the latest runtime files on ftp.vim.org so the update would be picked up
automatically if he did so.

I'll send him a note to this effect.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega james...@debian.org


signature.asc
Description: Digital signature