[Bug 392086] Re: [karmic] vim-7.2.148-2ubuntu2 - broken regexp in debchangelog.vim
Bug Watch Updater
392086 at bugs.launchpad.net
Thu Aug 11 11:33:10 UTC 2011
** Changed in: vim (Debian)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to vim in Ubuntu.
https://bugs.launchpad.net/bugs/392086
Title:
[karmic] vim-7.2.148-2ubuntu2 - broken regexp in debchangelog.vim
Status in “vim” package in Ubuntu:
Fix Released
Status in “vim” package in Debian:
Fix Released
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/392086/+subscriptions
More information about the foundations-bugs
mailing list