Skip to content

new string formatting for complex text strings #2

Description

@oatmealine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions