Skip to content

"Internal Aliases" like ? and # shouldn't expand inside of arguments #30

@briantist

Description

@briantist

? inside a template is replaced with [alpha]; similarly # is replaced with [digit].

But if you did something like ig "[randomdate 1/1/1111 2/2/2222 'yyyy ? MM ? dd']" you'd have a mess on your hands: 1282 [alp6a MM b dd'] 😕

Since that replace is done before generator parsing, this is to be expected at the moment. Since these "Internal Aliases" (the name I'm giving them) expand to generators, they should be interpreted before generators are, but to do that means it's not clear when the text we're looking at is or isn't part of a generator itself. So this may require a two-pass type of dealie.

Have some ideas on improving parsing, both technically and readability-wise, so maybe that can help with this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions