From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul R Newsgroups: gmane.emacs.help Subject: Re: temp stop syntax coloring on region of mismatched quotes Date: Thu, 04 Dec 2008 12:00:17 +0100 Message-ID: <871vwo9pdq.fsf@gmail.com> References: <0712fc75-1c84-4b46-aaec-4417c133030d@c36g2000prc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228388458 7194 80.91.229.12 (4 Dec 2008 11:00:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2008 11:00:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xah Lee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 04 12:02:03 2008 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.50) id 1L8By6-00061b-Ui for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Dec 2008 12:02:03 +0100 Original-Received: from localhost ([127.0.0.1]:57675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8Bww-00073U-EY for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Dec 2008 06:00:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8Bwb-00073M-3Z for help-gnu-emacs@gnu.org; Thu, 04 Dec 2008 06:00:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8BwY-000734-Cm for help-gnu-emacs@gnu.org; Thu, 04 Dec 2008 06:00:27 -0500 Original-Received: from [199.232.76.173] (port=37487 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8BwY-000731-1d for help-gnu-emacs@gnu.org; Thu, 04 Dec 2008 06:00:26 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.174]:30438) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8BwX-0002rk-JD for help-gnu-emacs@gnu.org; Thu, 04 Dec 2008 06:00:25 -0500 Original-Received: by ug-out-1314.google.com with SMTP id 36so4108942uga.17 for ; Thu, 04 Dec 2008 03:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=IDMomuaG4kJtGdMXbBOgByTJv2Ftl+KpuhqxUB1JSV0=; b=NTomHYHvZ7pUL6n6HUN3RrCKhy+GyMZIkKsGZk9KkyC2+jrkVt20Kr4Mg9IfmGaH9S T9ZC0MfgqkavBATLMfq56bgI8WyZPFpn8jygbPbNwy7ESz6Itre2nr6XX5A65KO7Nbjc SRzuVYoPQlDSIlcfoQL/jWbzhIrw3NBP/craw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=Iq5YhCRXLmpepbG1hz6sN77zCXd16nkiNUU2/j7LCy5fh8Cu8kEds2WD99Tw8bOeYk ieDv8vTiuHHQIl52XtW9Cbg89CwpYg0n2von/h6Cg1kdjRR+buClJbsRqb81t2xZ2QAE gJBNpEB2CiYl3NZTGta9G42i0ryTMcQ18IaBA= Original-Received: by 10.86.63.19 with SMTP id l19mr8565043fga.40.1228388422924; Thu, 04 Dec 2008 03:00:22 -0800 (PST) Original-Received: from ubuT42 (pdc35-1-82-242-132-111.fbx.proxad.net [82.242.132.111]) by mx.google.com with ESMTPS id d4sm5926715fga.48.2008.12.04.03.00.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 04 Dec 2008 03:00:21 -0800 (PST) In-Reply-To: <0712fc75-1c84-4b46-aaec-4417c133030d@c36g2000prc.googlegroups.com> (Xah Lee's message of "Wed, 3 Dec 2008 18:58:10 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:60360 Archived-At: Hi Xah, Xah> sometimes in some source code, the double quote doesn't match and Xah> makes the rest of the code from that point on syntax colored wrong. Xah> Very annoying. Xah> Is there anyway to make it not syntax color the region of text Xah> where the quote becomes odd? I also often face this problem. I don't know much of how to make a syntax highlighting mode for emacs, but AFAIU fontlock only works on current line. For that reason, modes often re-implement their own search-forward based fontlock system for quoted strings. I guess the major mode should be fixed to detect what is a quote for quoting string and what is not. On Wed, 3 Dec 2008 18:58:10 -0800 (PST), Xah Lee said: Xah>
 <img src="\([^"]+\)" alt="math surface"
Xah> width="\([0-9]+\)" height="\ ([0-9]+\)"> 
BTW, is this XHTML compliant ? -- Paul