Bug with vim's syntax highlighting in perl
Bug #494124 reported by
André-Yves
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
security vulnerability: | yes → no |
visibility: | private → public |
Changed in vim (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
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.