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

Escapable blocks of text #83

Merged
merged 6 commits into from
Jul 24, 2024
Merged

Escapable blocks of text #83

merged 6 commits into from
Jul 24, 2024

Conversation

sghael
Copy link
Contributor

@sghael sghael commented Jun 22, 2024

allow escapable blocks of text when wrapped in triple backticks or quotes. Fixes #52

@kharvd
Copy link
Owner

kharvd commented Jun 24, 2024

Nice! Thanks for the contribution. Do you mind adding a test with a multiline string? Otherwise should be good

@sghael
Copy link
Contributor Author

sghael commented Jun 27, 2024

Good idea. I added a test for multiline string.

Comment on lines 59 to 61
"this is a prompt \n--bar=1.0 \n--baz=2.0 \n {start}another line \nmy final line{end}",
"this is a prompt \n \n \n {start}another line \nmy final line{end}",
{'bar': '1.0', 'baz': '2.0'},
Copy link
Owner

Choose a reason for hiding this comment

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

does it make sense to test the case when the arguments are within the escaped block as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added "--foo=3.0" in a part of the multi-line text, to ensure it is not parsed.

@kharvd kharvd merged commit 67491ba into kharvd:main Jul 24, 2024
1 check passed
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.

Error on input --a b
2 participants