From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Elisp syntax hilighting problem Date: Sat, 22 Apr 2006 17:13:17 +0200 Message-ID: References: <444975EF.8040805@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1145718824 6464 80.91.229.2 (22 Apr 2006 15:13:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Apr 2006 15:13:44 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 22 17:13:42 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FXJnm-0007Sc-Pz for ged-emacs-devel@m.gmane.org; Sat, 22 Apr 2006 17:13:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FXJnm-0003Tk-7C for ged-emacs-devel@m.gmane.org; Sat, 22 Apr 2006 11:13:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FXJnc-0003TX-8L for emacs-devel@gnu.org; Sat, 22 Apr 2006 11:13:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FXJnZ-0003TL-OR for emacs-devel@gnu.org; Sat, 22 Apr 2006 11:13:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FXJnZ-0003TI-JZ for emacs-devel@gnu.org; Sat, 22 Apr 2006 11:13:25 -0400 Original-Received: from [195.135.220.15] (helo=mx2.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FXJpN-0005pb-J2 for emacs-devel@gnu.org; Sat, 22 Apr 2006 11:15:17 -0400 Original-Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 6B8951EBF0; Sat, 22 Apr 2006 17:13:20 +0200 (CEST) Original-To: Lennart Borgman X-Yow: I know how to do SPECIAL EFFECTS!! In-Reply-To: <444975EF.8040805@student.lu.se> (Lennart Borgman's message of "Sat, 22 Apr 2006 02:16:47 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) 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:53235 Archived-At: Lennart Borgman writes: > The defconst below sometimes upset the syntax highlighting so that the > function following it is in the same face as the string: I cannot reproduce that here. Can you give more details about the situation where it occurs? > (defconst rng-in-attribute-value-regex > (replace-regexp-in-string > "w" > xmltok-ncname-regexp > " \\(?:[ \t\r\n]+w\\(?::w\\)?[ \t\r\n]*=3D\ > [ \t\r\n]*\\(?:\"[^\"]*\"\\|'[^']*'\\)\\)*\ > [ \t\r\n]+\\(w\\(:w\\)?\\)[ \t\r\n]*=3D[ \t\r\n]*\ > \\(\"[^\"]*\\|'[^']*\\)\\=3D" > t > t)) > > > More problems: The \\=3D is not marked. There are no builtin rules for marking this. Only grouping constructs have special faces. > The two [ at beginning of line is marked with a red face. This is a feature. It marks characters (by default those of open paren syntax at the start of a line) that breaks the simple-minded parsing of beginning-of-defun. Prepend a backslash to avoid that. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."