Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to parse string interpolation properly #12855

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

merelymyself
Copy link
Contributor

@merelymyself merelymyself commented May 13, 2024

Description

Resolves #12722. The error existed previously as when the interpolation was pushed to lex, it would register as incomplete due to the ' being "outside a bracket".

Added test for this, too.

~/CodingProjects/nushell> $"("'")"
'

@merelymyself merelymyself marked this pull request as ready for review May 15, 2024 00:59
@IanManske
Copy link
Member

Hi @merelymyself, thanks for tackling this issue! Unfortunately it looks like the current changes break string interpolation in other cases:

$"("(1)")"
$"($"(1)")"

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.

Quotes inside interpolations can terminate the interpolated string
2 participants