From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: [cperl-mode] minor highlighting deficiencies Date: Thu, 27 May 2010 04:19:16 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0f24d932-0dd3-4c9b-8d5b-da3268f2bc14@y21g2000vba.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291834849 27451 80.91.229.12 (8 Dec 2010 19:00:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 19:00:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 20:00:45 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQPFn-0003hn-4v for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 20:00:39 +0100 Original-Received: from localhost ([127.0.0.1]:36559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQPFm-0002Vx-KE for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 14:00:38 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!y21g2000vba.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 89.247.162.221 Original-X-Trace: posting.google.com 1274959156 10389 127.0.0.1 (27 May 2010 11:19:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 27 May 2010 11:19:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y21g2000vba.googlegroups.com; posting-host=89.247.162.221; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178440 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75845 Archived-At: 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