From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#45717: 27.1; Error with apostrophe in JSX comment Date: Sat, 30 Oct 2021 19:41:10 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26612"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 45717@debbugs.gnu.org To: Jakobsson Mattias Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 31 03:42:27 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mh0nj-0006mL-Kl for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 03:42:27 +0100 Original-Received: from localhost ([::1]:41108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mh0ni-0003o6-Ij for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Oct 2021 22:42:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mh0nK-0003n3-Bx for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 22:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47218) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mh0nK-0005S2-12 for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 22:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mh0nJ-0004Vp-Sk for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 22:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Oct 2021 02:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45717 X-GNU-PR-Package: emacs Original-Received: via spool by 45717-submit@debbugs.gnu.org id=B45717.163564808117284 (code B ref 45717); Sun, 31 Oct 2021 02:42:01 +0000 Original-Received: (at 45717) by debbugs.gnu.org; 31 Oct 2021 02:41:21 +0000 Original-Received: from localhost ([127.0.0.1]:58761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mh0me-0004Uc-Ra for submit@debbugs.gnu.org; Sat, 30 Oct 2021 22:41:21 -0400 Original-Received: from mail-pl1-f171.google.com ([209.85.214.171]:41618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mh0ma-0004U2-UG for 45717@debbugs.gnu.org; Sat, 30 Oct 2021 22:41:17 -0400 Original-Received: by mail-pl1-f171.google.com with SMTP id z11so9375704plg.8 for <45717@debbugs.gnu.org>; Sat, 30 Oct 2021 19:41:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=AANKSMQSIzmeY4BNIsj7q+mkrxr6iTq0YFVolGM5v84=; b=Snku8VHWURWLEv6k5nWQAhV761wdh1QfTXl8V4EinRoB5rNOlT85CT+QGsEDBlU7ae 1ZXZmiM+W9gNQGGd856JiWGdZyYAZ2HIWdLDRkiygxuWNvR+/sriZv2PbfCQ6jNiuMqJ bA2wlgRmiwa82xuwqUySYaLhJFw84tl+TWlIXiTuPPbn3uJeVTDDRCTz8pUdb90fG0aP oCMv6NocEGSgtLPftEHM38wIub6Kk2+I3eJDJtI4Kthfl9yAHiT+1QRSKIVpMp7eFZHe /rzTzgkB0djHT8pX5gt5e2A6tVu8ZYQWUTHJFo26NksCjcPWEvFaWIAuTsR8TMKRO25k Vu1Q== X-Gm-Message-State: AOAM531CtY7IitqxT68z2XgpdF675SRZHdAVLU5fVBx/InyA82Jm7a9o hqqQpAgbbFyWfK1bZh7OuSdEqtEhhuc0JYH8ThA= X-Google-Smtp-Source: ABdhPJwww1O/AzsICiG6qBfxHIhMNnSfuAjlp9GKPWGSl2LvlVTukiim/hlCiggdcOCIt8Vo9wSSoPiye0ZCH1POM5Y= X-Received: by 2002:a17:902:8c93:b0:141:5442:e608 with SMTP id t19-20020a1709028c9300b001415442e608mr17875334plo.32.1635648071264; Sat, 30 Oct 2021 19:41:11 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 30 Oct 2021 19:41:10 -0700 In-Reply-To: (Jakobsson Mattias's message of "Thu, 7 Jan 2021 16:26:09 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218651 Archived-At: tags 45717 + confirmed thanks Jakobsson Mattias writes: > I get the errors in the Recent messages further below if I edit (e.g., by inserting a newline) > a JSX file with the content between the ``` below. If I remove the apostrophe from > "don't" in the comment the errors goes away. > > ``` > import React from "react"; > > const MyComponent = ({ someList }) => ( >
className={someList.filter( > // don't include an apostrophe in this comment > (cls) => cls !== "someclass" > )} > /> > ); > > export default MyComponent; > ``` I tried reproducing this on current master, but I don't see any message. However, I do see incorrect highlighting after the comment with the apostrophe, so something is clearly still not working as it should.