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

Yuan Fu <[email protected]> Tue, 4 Aug 2026 23:33:26 -0700
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>

> On Aug 4, 2026, at 5:46=E2=80=AFAM, Sean Whitton =
<[email protected]> wrote:
>=20
> Binbin YE [23/Jul  9:10pm +08] wrote:
>> --text follows this line--
>>=20
>>=20
>> tsx-ts-mode has trouble handling following syntax. the `<` in
>>=20
>> `<Component' matches wrongly to `>' in `=3D>'.
>>=20
>>=20
>> <Component onChange=3D{(_, value) =3D> {...}}>
>>=20
>>=20
>> Also the {} [] in `onCallback =3D {() =3D> { return [] }}' are =
treated as
>>=20
>> punctuation instead of open or closing brackets.
>>=20
>>=20
>> I attached a patch for the fix.
>=20
> The patch looks suitably minimal for the emacs-31 branch.
>=20
> Theo or Yuan, could you take a look?
>=20
> Thanks.

Looks reasonable to me, thanks for the patch Binbin!

Yuan=