[karmic] vim-7.2.148-2ubuntu2 - broken regexp in debchangelog.vim

Bug #392086 reported by Philip Muškovac
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vim (Debian)
Fix Released
Unknown
vim (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: vim

The regular expression for the element debchangelogTarget is broken.
Right now its:

syn match debchangelogTarget contained "\v %(frozen|unstable|%(testing|%(old)=stable)=%(-proposed-updates|-security)=|experimental|%(etch|lenny)-%(backports|volatile)|%(dapper|gutsy|hardy|intrepid|jaunty|karmic)%(-%(security|proposed|updates|backports|commercial|partner))=)+"

the probmlem is the part with ...|%(testing|%(old)=stable)=%(-proposed-updates|-security)=|...
if no part of this alternative is selected in the changelog file this part will be substitued as an empty word which isn't allowed in vim, so the regex is only evaluated to this point.

The fix would be to remove the = after stable so the alternative won't be empty any more.
Complete:

syn match debchangelogTarget contained "\v %(frozen|unstable|%(testing|%(old)=stable)%(-proposed-updates|-security)=|experimental|%(etch|lenny)-%(backports|volatile)|%(dapper|gutsy|hardy|intrepid|jaunty|karmic)%(-%(security|proposed|updates|backports|commercial|partner))=)+"

I tested it and it works.

Philip Muškovac (yofel)
description: updated
Changed in vim (Debian):
status: Unknown → Fix Committed
Revision history for this message
No (11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

I can confirm this.

Changed in vim (Ubuntu):
status: New → Confirmed
Revision history for this message
No (11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Fixed in vim 7.2.245-2ubuntu1

Changed in vim (Ubuntu):
status: Confirmed → Fix Released
Changed in vim (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.