From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: sh-script fontification errors (error during display messages) Date: Sat, 15 Oct 2005 10:28:31 +0200 Message-ID: <4350BDAF.5080506@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1129368346 3480 80.91.229.2 (15 Oct 2005 09:25:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Oct 2005 09:25:46 +0000 (UTC) Cc: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 15 11:25:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQiHR-00026S-1x for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2005 11:24:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQi9I-0008Gy-C7 for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2005 05:16:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EQhnB-0007lM-J7 for emacs-devel@gnu.org; Sat, 15 Oct 2005 04:53:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EQhhV-0006xE-Sb for emacs-devel@gnu.org; Sat, 15 Oct 2005 04:47:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQhbT-0006eL-1G for emacs-devel@gnu.org; Sat, 15 Oct 2005 04:41:19 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EQhbS-0004Xy-WC for emacs-devel@gnu.org; Sat, 15 Oct 2005 04:41:19 -0400 Original-Received: (qmail invoked by alias); 15 Oct 2005 08:41:11 -0000 Original-Received: from N885P016.adsl.highway.telekom.at (EHLO [62.47.54.144]) [62.47.54.144] by mail.gmx.net (mp035) with SMTP; 15 Oct 2005 10:41:11 +0200 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: mmaug@yahoo.com X-Y-GMX-Trusted: 0 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 Xref: news.gmane.org gmane.emacs.devel:44059 Archived-At: Apparently the delimiters of the sixth group are missing. Unless this has been fixed already you could try: (defun sh-font-lock-keywords-1 (&optional builtins) "Function to get better fontification including keywords." (let ((keywords (concat "\\([;(){}`|&]\\|^\\)[ \t]*\\(\\(" (regexp-opt (sh-feature sh-leading-keywords) t) "[ \t]+\\)?" (regexp-opt (append (sh-feature sh-leading-keywords) (sh-feature sh-other-keywords)) t)))) (sh-font-lock-keywords `(,@(if builtins `((,(concat keywords "[ \t]+\\)?\\(" (regexp-opt (sh-feature sh-builtins) t) "\\)\\>") (2 font-lock-keyword-face nil t) (6 font-lock-builtin-face)) ,@(sh-feature sh-font-lock-keywords-var-2))) (,(concat keywords "\\)\\>") 2 font-lock-keyword-face) ,@(sh-feature sh-font-lock-keywords-var-1)))))