Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

cog (4665)

Journal of cog (4665)

Tuesday June 01, 2004
05:59 AM

Bug in Vim's Perl syntax

[ #19024 ]
Yep, a bug was found :-) At least in the version of perl.vim I had :-)

The syntax was taking care of things such as $1 .. $9, which are special variables, but was not doing anything about variables such as $10 (or, actually, was treating them as $1 and another character).

If you don't believe me, go check it out :-)

This was the patch I proposed (I'm now waiting for some feedback):

< syn match perlVarPlain "$[\\\"\[\]'&`+*.,;=%~!?@$(0-9-]"
> syn match perlVarPlain "$[0-9]\+"
> syn match perlVarPlain "$[\\\"\[\]'&`+*.,;=%~!?@$(-]"

To tell the truth, I don't even know if it has already been taken care of, but the "most recent version" of the file seems to be unavailable :-\

Anyway, I mailed the maintainer of the file, so it should be corrected soon (provided it still has to)... :-|

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Vim has a CVS [] and you can obtain patches [] separately. From my experience, the vim-dev mailing list is quite responsive, and if you send patches directly to the maintainer of a specific .vim file, it's a good idea to cc: Bram Moolenaar as well (maintainers may be quite slow to answer -- I've been known, for once, to be slow.)