bug#81460: 31.0.90; tsx-ts-mode matches html tag's opening < with > in arrow function =>

Sean Whitton <[email protected]> Tue, 04 Aug 2026 13:46:43 +0100
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
Binbin YE [23/Jul  9:10pm +08] wrote:
> --text follows this line--
>
>
> tsx-ts-mode has trouble handling following syntax. the `<` in
>
> `<Component' matches wrongly to `>' in `=>'.
>
>
> <Component onChange={(_, value) => {...}}>
>
>
> Also the {} [] in `onCallback = {() => { return [] }}' are treated as
>
> punctuation instead of open or closing brackets.
>
>
> I attached a patch for the fix.

The patch looks suitably minimal for the emacs-31 branch.

Theo or Yuan, could you take a look?

Thanks.

-- 
Sean Whitton