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

Comma affects whether an error is thrown #9

Open
Clara-Brandt opened this issue Jun 23, 2021 · 0 comments
Open

Comma affects whether an error is thrown #9

Clara-Brandt opened this issue Jun 23, 2021 · 0 comments

Comments

@Clara-Brandt
Copy link

With a comma this expression is valid,

any of( (anything never or more capture(digit) ) capture(letter),(anything once or more))

any of( (anything never or more capture(digit) ) capture(letter)(anything once or more))

but without a comma it interprets (anything once or more) as a sub-query for capture(letter) and throws an error:
The SRL Query contains an error: capture does not allow the use of sub-queries.

Unfortunately, "anything once or more" must be wrapped in parentheses (the parentheses are the reason a sub-query is being interpreted) so that the disjunction doesn't treat the quantifier separately.

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

No branches or pull requests

1 participant