Skip to content

fix: support escape sequences in tagged templates#107

Merged
JoshuaKGoldberg merged 3 commits intodmnd:mainfrom
marcalexiei:escape
Mar 1, 2026
Merged

fix: support escape sequences in tagged templates#107
JoshuaKGoldberg merged 3 commits intodmnd:mainfrom
marcalexiei:escape

Conversation

@marcalexiei
Copy link
Copy Markdown
Contributor

@marcalexiei marcalexiei commented Jan 1, 2026

PR Checklist

Overview

Fixes support for escape sequences in tagged templates by preserving raw template parts and unescaping explicit character escapes (e.g. \n, \t, \xHH, \uXXXX, \u{...}) only after indentation and trimming.

@marcalexiei

This comment was marked as outdated.

@marcalexiei
Copy link
Copy Markdown
Contributor Author

@JoshuaKGoldberg, when you have the chance, could you please review this?
Thanks in advance

@JoshuaKGoldberg
Copy link
Copy Markdown
Collaborator

👋 thanks for the ping, and sorry for the delay! Looking now.

Copy link
Copy Markdown
Collaborator

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just one suggestion around tests that doesn't need to block merging. Let me know if you don't have time to apply it and I always can later this week. Thanks again @marcalexiei! 🙌

@JoshuaKGoldberg JoshuaKGoldberg added the status: waiting for author Needs an action taken by the original poster label Feb 28, 2026
@github-actions github-actions bot removed the status: waiting for author Needs an action taken by the original poster label Mar 1, 2026
Copy link
Copy Markdown
Collaborator

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 awesome, thanks!

@JoshuaKGoldberg JoshuaKGoldberg merged commit 34f5d32 into dmnd:main Mar 1, 2026
11 checks passed
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 1, 2026

🎉 This is included in version v1.7.2 🎉

The release is available on:

Cheers! 📦🚀

@marcalexiei marcalexiei deleted the escape branch March 1, 2026 21:21
@alumni
Copy link
Copy Markdown

alumni commented Mar 3, 2026

@marcalexiei @JoshuaKGoldberg I think escaping the escape character is still a problem, #95 (comment) is still valid even after this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Does not support escape sequences

3 participants