Skip to content

escape parentheses in stepdefs? #246

@nruth

Description

@nruth

Given a scenario line like

Then I'm warned (with emphasis) that they are x

or as in the examples at https://cucumber.io/docs/gherkin/reference/

Then he (or she) will live forever ;-)

It seems like this can't be matched by a turnip stepdef because parens are used for optional words. Is there an escape mechanism, like in regular expressions? OPTIONAL_WORD_REGEXP looks like there isn't?

I imagine the same thing could apply to : and / for placeholders and alternate words.

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