* [cperl-mode] minor highlighting deficiencies
@ 2010-05-27 11:19 LanX
0 siblings, 0 replies; only message in thread
From: LanX @ 2010-05-27 11:19 UTC (permalink / raw)
To: help-gnu-emacs
Hi
1) UNITCHECK blocks aren't treated like CHECK blocks i.e. `font-lock-
keyword-face'
2) Highlighting of variables in strings are not consistent
a) in $a="@a %h $s";
the arrays and hashes are highlighted the scalars are not (`font-
lock-string-face')
b) there is no difference between single and double quoted
(interpolated) strings.
$a='@a %h $s';
c) escaping doesnt change the highlighting of arrays and hashes
$a="\@a \%h \$s";
3) Variablegrouping in braces are not discovered
print @{a} %{h} ${s};
while it's disputable if the identifieres within the braces are
easily parsed,
since @{$array_ref} is a dereferencing command, it could be at
least suggested
to highlight the surrounding @{ ...} in cperl-array-face or at
least
perl-nonoverridable-face like in constructs like qq{...}
4) perl allows whitespaces between sigils and identifier, i.e. @ a and
@ {a} are legal
arrays ... while I wouldn't say it's good style.
All of these suggestions except the first one need quite complicated
look around parsings, as a minimal solution it should be considered at
least to skip variable highlighting within strings, like they are
ignored in scalar variables.
Cheers
Rolf
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-27 11:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-27 11:19 [cperl-mode] minor highlighting deficiencies LanX
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.