From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Elisp syntax hilighting problem Date: Sun, 23 Apr 2006 01:22:25 +0200 Message-ID: <444ABAB1.3000807@student.lu.se> References: <444975EF.8040805@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145748173 18729 80.91.229.2 (22 Apr 2006 23:22:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Apr 2006 23:22:53 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 23 01:22:50 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 1FXRR9-0000GX-Ih for ged-emacs-devel@m.gmane.org; Sun, 23 Apr 2006 01:22:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FXRR9-000596-1e for ged-emacs-devel@m.gmane.org; Sat, 22 Apr 2006 19:22:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FXRQy-00058r-82 for emacs-devel@gnu.org; Sat, 22 Apr 2006 19:22:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FXRQw-00058f-HT for emacs-devel@gnu.org; Sat, 22 Apr 2006 19:22:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FXRQw-00058c-DW for emacs-devel@gnu.org; Sat, 22 Apr 2006 19:22:34 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FXRSp-0006Db-2x for emacs-devel@gnu.org; Sat, 22 Apr 2006 19:24:31 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.070) id 443D092800213C5B; Sun, 23 Apr 2006 01:22:26 +0200 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: Andreas Schwab In-Reply-To: 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:53246 Archived-At: Andreas Schwab wrote: > 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? > I happens sometimes but not always. One way I have seen to reproduce it is to delete the line after defconst and before next declaration. I just tested it - it worked for me a couple of times (ie I could see the problem) and then everything looked ok again. > >> (defconst rng-in-attribute-value-regex >> (replace-regexp-in-string >> "w" >> xmltok-ncname-regexp >> "> \\(?:[ \t\r\n]+w\\(?::w\\)?[ \t\r\n]*=\ >> [ \t\r\n]*\\(?:\"[^\"]*\"\\|'[^']*'\\)\\)*\ >> [ \t\r\n]+\\(w\\(:w\\)?\\)[ \t\r\n]*=[ \t\r\n]*\ >> \\(\"[^\"]*\\|'[^']*\\)\\=" >> t >> t)) >> >> >> More problems: The \\= is not marked. >> > > There are no builtin rules for marking this. Only grouping constructs > have special faces. > Oh, I see. Maybe it should be marked? > >> 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. > Thanks.