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

new string formatting for complex text strings #2

Open
oatmealine opened this issue May 21, 2023 · 0 comments
Open

new string formatting for complex text strings #2

oatmealine opened this issue May 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@oatmealine
Copy link
Owner

if you have a second parser (for eg. markdown) working after scrunkly, then you'll commonly find that to type something like this:

\*escaped asterisks\*

you will need to type something like:

say "\\*escaped asterisks\\*"

this is really unconventional and only needed to escape quotes. my idea is to introduce a new type of quote:

say `\*escaped asterisks\*`

backslashes has no effect in them, which also prevents you from typing the character ` in them, but i think that's mostly okay. alternatively strings similar to Lua's long strings could be used:

say [[\*escaped asterisks\*]]

the main issue is those are Hellish to parse with lua's regular expression tools

@oatmealine oatmealine added the enhancement New feature or request label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant