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: Dmitry Gutov
Subject: bug#45717: 27.1; Error with apostrophe in JSX comment
Date: Wed, 3 Nov 2021 04:34:16 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 31.10.2021 05:41, Stefan Kangas wrote:
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.

I do see errors in this scenario, especially after trying to edit or move around. Like:

js-jsx--syntax-propertize-extend-region: Lisp nesting exceeds ‘max-lisp-eval-depth’Error during redisplay: (jit-lock-function 1) signaled (error "Lisp nesting exceeds ‘max-lisp-eval-depth’")

Adding Jackson to Cc, perhaps he'll have time and inclination to investigate this.





reply via email to

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