unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Jakobsson Mattias <mattias.jakobsson@smhi.se>
Cc: 45717@debbugs.gnu.org
Subject: bug#45717: 27.1; Error with apostrophe in JSX comment
Date: Sat, 30 Oct 2021 19:41:10 -0700	[thread overview]
Message-ID: <CADwFkmncTSbofwG4eda=j0MPyWWbneDJV66PJAvf5dk3AdgTaA@mail.gmail.com> (raw)
In-Reply-To: <feea889cac114319a227ed5f7b0c2f3b@smhi.se> (Jakobsson Mattias's message of "Thu, 7 Jan 2021 16:26:09 +0000")

tags 45717 + confirmed
thanks

Jakobsson Mattias <mattias.jakobsson@smhi.se> 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 }) => (
>   <div
>     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.





  reply	other threads:[~2021-10-31  2:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-07 16:26 bug#45717: 27.1; Error with apostrophe in JSX comment Jakobsson Mattias
2021-10-31  2:41 ` Stefan Kangas [this message]
2021-11-03  1:34   ` Dmitry Gutov
2021-11-20  2:32     ` Jackson Ray Hamilton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkmncTSbofwG4eda=j0MPyWWbneDJV66PJAvf5dk3AdgTaA@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=45717@debbugs.gnu.org \
    --cc=mattias.jakobsson@smhi.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).