bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45717: 27.1; Error with apostrophe in JSX comment


From: Stefan Kangas
Subject: bug#45717: 27.1; Error with apostrophe in JSX comment
Date: Sat, 30 Oct 2021 19:41:10 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]