[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: perl-mode confused whith split(/,/,$var);
From: |
Stefan Monnier |
Subject: |
Re: perl-mode confused whith split(/,/,$var); |
Date: |
Wed, 16 Nov 2005 12:33:16 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> This code below confuses perl-mode. The comma in split /,/, ... causes
> everything after it to be indented and hi-lighted wrong.
> If I change the , to an X it is ok. Also if I put () around the split args
> it is ok.
I recommend you put parens around the args.
> I am running with the last set of perl-mode and font-lock patches you sent.
> @{$Master{$activeNameSpace}{View}{$viewName}{types}} = split /,/, $viewTypes
> if ($numFields==5);
The problem here is that perl-mode fails to recognize that the first / is not
a division sign. I'll see if I can spice up the regexps to try and deal
with such cases, but in general it's pretty difficult.
Stefan