Subject: bug#59691: 29.0.60; typescript-ts-mode: any HTML-like elements causes fontification to become invalid and remaining parse-tree to become jsx-expression

From: Eli Zaretskii <[email-masked]>
Date: Wed, 30 Nov 2022 20:19:04 +0200

> Date: Wed, 30 Nov 2022 19:10:04 +0100
> From: Theodor Thornhill <[email-masked]>
> CC: [email-masked], [email-masked], [email-masked],
>  [email-masked]
> 
> >Our automatic turning-on of major-modes looks at the file-name extension and
> >little else (magic-mode-alist is not useful here).  So if a file whose
> >extension is XYZ can have more than one applicable major-mode, we should try
> >to do something to turn on the correct mode automatically.  What can we do?
> 
> We are lucky because the extensions in question are ts, tsx and js. So we don't need any smartness :)

And the extensions always say unequivocally what mode to use?  Then yes, we
are lucky, and need just one more major mode (and one more grammar library).