Bug with vim's syntax highlighting in perl

Bug #494124 reported by André-Yves
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
vim (Debian)
Fix Released
Unknown
vim (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: vim

If a regex using an alternate delimiter finishes with a $ sign, the syntax highlighting thinks it is a variable.

ex :

m[foobar$]
m#foobar$#

will higlight $] and $# as a variable. The real impact is that it doesn't perceive the regex as terminated, and highlight the rest of the document accordingly, until it reach a suitable delimiter.

I use Ubuntu 9.10 netbook remix
Vim : VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 21 2009 11:22:49)
Included patches: 1-245

André-Yves (andreyves)
security vulnerability: yes → no
visibility: private → public
Revision history for this message
André-Yves (andreyves) wrote :

Example of a file that show this bug :

#!usr/bin/perl

$foo =~ m[foobar$];

#This should be a comment but is not highlighted as one.

Revision history for this message
Will Gray (graywh) wrote :

Please report this to the syntax/perl.vim maintainer.

Revision history for this message
srdjan (srdjan-djenka) wrote : Re: [Bug 494124] Re: Bug with vim's syntax highlighting in perl

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14/05/10 08:06, Will Gray wrote:
> Please report this to the syntax/perl.vim maintainer.
>
Can you please reassign, or provide instructions how to report to
syntax/perl.vim
Thanks.

Srdjan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvsiUcACgkQX6p/D9UE7dxECgCcDtCGY1vakGJEEa+1p8hMljWh
8ZoAnilsBKJ9aBXjRbMjWPraVKiiVKMV
=5rMa
-----END PGP SIGNATURE-----

Revision history for this message
Will Gray (graywh) wrote :

Read the first several lines of /usr/share/vim/vim72/syntax/perl.vim

Changed in vim (Debian):
status: Unknown → Fix Released
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

The debian bug says this is fixed in 7.2.436, Ubuntu quantal is on 7.3.547, and trying your example it does look fixed.

Changed in vim (Ubuntu):
status: New → 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.