From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7921: 23.2.91; js-mode font lock problem with comments Date: Thu, 27 Jan 2011 12:22:52 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296149354 12450 80.91.229.12 (27 Jan 2011 17:29:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 17:29:14 +0000 (UTC) Cc: 7921@debbugs.gnu.org, Evan Owens To: Deniz Dogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 27 18:29:10 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PiVec-0007Fu-Lm for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 18:29:09 +0100 Original-Received: from localhost ([127.0.0.1]:33284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiVax-0000KG-3o for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 12:25:19 -0500 Original-Received: from [140.186.70.92] (port=38274 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiVao-0000HM-6G for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:25:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiVam-0000tJ-E0 for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:25:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiVam-0000tF-CW for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:25:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PiVR0-0001tC-IX; Thu, 27 Jan 2011 12:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jan 2011 17:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7921 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7921-submit@debbugs.gnu.org id=B7921.12961484857222 (code B ref 7921); Thu, 27 Jan 2011 17:15:02 +0000 Original-Received: (at 7921) by debbugs.gnu.org; 27 Jan 2011 17:14:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiVQj-0001sR-2w for submit@debbugs.gnu.org; Thu, 27 Jan 2011 12:14:45 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiVQg-0001sF-Qy for 7921@debbugs.gnu.org; Thu, 27 Jan 2011 12:14:43 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAMM4QU1FpZU//2dsb2JhbACkfHS8FIVPBIUXj2k X-IronPort-AV: E=Sophos;i="4.60,386,1291611600"; d="scan'208";a="89435632" Original-Received: from 69-165-149-63.dsl.teksavvy.com (HELO pastel.home) ([69.165.149.63]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 27 Jan 2011 12:22:52 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 9917758C4E; Thu, 27 Jan 2011 12:22:52 -0500 (EST) In-Reply-To: (Deniz Dogan's message of "Thu, 27 Jan 2011 04:26:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 Jan 2011 12:15:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43684 Archived-At: >>> path=3D/";/ # Everything following and including the last / is string f= ace >>> path=3D"; # Everything is fine >>> path=3D//"; # Everything is fine >>=20 >> I've put the above three lines in ~/tmp/foo.js and opened it with >> Debian's emacs23 and I don't think I see the problems you describe in >> the comments. =A0OTOH I see other problems of highlighting but they're >> largely due to the code itself being meaningless, AFAIK (# is not >> a comment marker in javascript, is it?). >>=20 > I'm sorry, I should have been more clear. The # signs are > meta-comments, please leave them out when trying to reproduce the > problem. In my tests, the ";\npath=3D//" is treated as a string. This sounds right to me, but not being a js-programmer, your example makes me doubt. IOW, using the latest code in the emacs-23, are there still some issues with js-mode's font-locking? Stefan