fix: don't mistake `type` identifier expressions for TS `type` declarations in tags (#18330)
Detect TypeScript `type` declarations by actually parsing instead of by
character-class blacklists, so that expressions like `{type === 'all' ?
a : b}` or `{type instanceof Foo}` aren't misclassified as malformed
declarations.
Closes #18328
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> Y
Yuichiro Yamashita committed
c74f44fff99de06270c26098600f891835a15288
Parent: b76b937
Committed by GitHub <noreply@github.com>
on 6/1/2026, 8:03:41 AM