From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Minor enhancement to font-look keywords of perl-mode Date: Tue, 22 Mar 2005 14:46:17 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111521506 24127 80.91.229.2 (22 Mar 2005 19:58:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2005 19:58:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 22 20:58:26 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDpVo-0004zl-Iz for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2005 20:58:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDpnA-0000X6-MR for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2005 15:15:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDpjm-0007hP-FN for emacs-devel@gnu.org; Tue, 22 Mar 2005 15:12:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDpjZ-0007bg-L1 for emacs-devel@gnu.org; Tue, 22 Mar 2005 15:12:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDpjZ-0007YU-9G for emacs-devel@gnu.org; Tue, 22 Mar 2005 15:12:13 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DDpKY-0002DP-0H for emacs-devel@gnu.org; Tue, 22 Mar 2005 14:46:22 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 8974B340010; Tue, 22 Mar 2005 14:46:21 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 097904AC262; Tue, 22 Mar 2005 14:46:18 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id E7FD31165C1; Tue, 22 Mar 2005 14:46:17 -0500 (EST) Original-To: JUAN-LEON Lahoz Garcia In-Reply-To: (JUAN-LEON Lahoz Garcia's message of "Tue, 22 Mar 2005 18:01:40 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.824, requis 5, autolearn=not spam, AWL 0.08, BAYES_00 -4.90) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34986 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34986 > - '("&\\(\\sw+\\)" 1 font-lock-function-name-face) > + '("&\\(\\sw+\\(::\\sw+\\)*\\)" 1 font-lock-function-name-face) > ;; Additionally underline non-scalar variables. Maybe this is a bad idea. > ;;'("[$@%*][#{]?\\(\\sw+\\)" 1 font-lock-variable-name-face) > - '("[$*]{?\\(\\sw+\\)" 1 font-lock-variable-name-face) > + '("[$*]{?\\(\\sw+\\(::\\sw+\\)*\\)" 1 font-lock-variable-name-face) Installed, thanks. I also correspondingly updated the regexp below: > '("\\([@%]\\|\\$#\\)\\(\\sw+\\)" > (2 (cons font-lock-variable-name-face '(underline)))) > '("<\\(\\sw+\\)>" 1 font-lock-constant-face) -- Stefan