languages: Apply JSX fixes to JavaScript highlights (#47130) (cherry-pick to preview) (#47131)
zed-zippy[bot]
and
Finn Evers
created
Cherry-pick of #47130 to preview
----
Closes #46701
This ports the fixes from #46442 over to the JavaScript highlights,
which we forgot to do in that PR since the highlights are not shareable
and the fix was only applied to TSX... Hence, porting the fixes here
manually to solve the issue for good.
Release Notes:
- Fixed an issue where JSX components were highlighted too broadly,
causing normal HTML tags to be highlighted as such
Co-authored-by: Finn Evers <finn@zed.dev>