From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.bugs Subject: bug#7921: 23.2.91; js-mode font lock problem with comments Date: Thu, 27 Jan 2011 18:33:56 +0100 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 1296151105 22435 80.91.229.12 (27 Jan 2011 17:58:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 17:58:25 +0000 (UTC) Cc: 7921@debbugs.gnu.org, Evan Owens To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 27 18:58:21 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 1PiW6u-0008P0-UK for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 18:58:21 +0100 Original-Received: from localhost ([127.0.0.1]:53748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiW6u-0002zK-AA for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 12:58:20 -0500 Original-Received: from [140.186.70.92] (port=56088 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiW4e-0002Ny-RL for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:58:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiW3t-00006I-3e for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:56:00 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiW3s-00006D-S6 for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:55:13 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PiVcc-00029m-Av; Thu, 27 Jan 2011 12:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Deniz Dogan 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:27: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.12961491828241 (code B ref 7921); Thu, 27 Jan 2011 17:27:02 +0000 Original-Received: (at 7921) by debbugs.gnu.org; 27 Jan 2011 17:26:22 +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 1PiVbx-00028s-AK for submit@debbugs.gnu.org; Thu, 27 Jan 2011 12:26:21 -0500 Original-Received: from mail-iw0-f172.google.com ([209.85.214.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiVbi-00028E-NV for 7921@debbugs.gnu.org; Thu, 27 Jan 2011 12:26:20 -0500 Original-Received: by iwn40 with SMTP id 40so2352178iwn.3 for <7921@debbugs.gnu.org>; Thu, 27 Jan 2011 09:34:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=8c5Ej5P7uTxvKRFZAGUEy2irEeXn3X2JienOLRGXP04=; b=pk0uDJgXyZFFarjOZ1VlvUQOzAOD+2TQJSr5ws5EcNd5Jyqnu5sYLrhkzOr3SP4rzT 8FHgxvMVG2waVjWnAaamOA4t/UwmoO2IucSgFUNbDclu6RCyeGVLFZHsZOnbp1A4rWm4 psEF68/BOf60a9kstPOmDV43KfOjQ679yvYEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=cK/mGFNhJUJdblXYQKM7mtj/o50qcKeHJzQZmTe3701srGvNOTut6zn3BR/ZHdlFJZ TwjoWODv6gfkz+oQm1XVgo0Z5Qyjnpu+JDqVLG2iLGhm7X5/G5sb0BaOCQ7n4rJU4fkU Xzoo5Vo3gAqBuz04OhNiYFEsCyzVzB7pNv3n4= Original-Received: by 10.231.13.138 with SMTP id c10mr1294497iba.97.1296149656703; Thu, 27 Jan 2011 09:34:16 -0800 (PST) Original-Received: by 10.231.32.197 with HTTP; Thu, 27 Jan 2011 09:33:56 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 Jan 2011 12:27: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:43686 Archived-At: 2011/1/27 Stefan Monnier : >>>> path=3D/";/ # Everything following and including the last / is string = face >>>> path=3D"; # Everything is fine >>>> path=3D//"; # Everything is fine >>> >>> 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?). >>> > >> 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. =A0This sounds ri= ght > 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? > Assuming that you mean "; npath=3D//", it is indeed correctly fontified as a string. I notice now that I referred to the three JavaScript examples as "issues" -- they are not issues. Only the last two examples are valid JavaScript. The first example, even though _invalid_ JavaScript, might give us a hint about what the problem is. That is the only reason why I included it. --=20 Deniz Dogan