GNU bug report logs -
#22867
cperl mode highlights %d, but misses %.6f
Previous Next
Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Date: Tue, 1 Mar 2016 06:53:01 UTC
Severity: minor
Tags: fixed
Merged with 3091,
11054
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #24 received at 22867 <at> debbugs.gnu.org (full text, mbox):
The recent fix d0ad6306 to cperl-mode fixes a lot of unwanted
fontification of arrays and hashes, in particular in comments, POD,
and strings. However, as a side effect it also prevents fontification
in a variable declaration (this has been observed by choroba):
my @arr = (1,2,3); # @arr fontified as a scalar - bad
push @arr, 4; # @arr fontified as an array - good
print $arr[4]; # $arr fontified as an array - good
my %hash = ( foo => 'bar' ); # %hash fontified as a scalar - bad
$hash{baz => 'quux'}; # $hash fontified as a hash - good
Can this be easily fixed?
---
Of minor importance: There are some cases where fontification of an
array in a string makes sense, but is gone now:
my $mail = "me <at> somewhere.net";
This was previously fontified as an array. This makes sense because
in doubly-quoted strings, the value of arrays (here: @somewhere) will
be interpolated into the string. In the example above, the
fontification of @somewhere as an array was a welcome warning that
this is not what you want.
Fontification of a hash in a string, on the other hand, never makes
sense because hashes aren't interpolated.
---
Also, this bug can be merged with (Bug#11054), which in turn had been
merged with (Bug#3091).
This bug report was last modified 4 years and 258 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.