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

FIX: issue #4591 (PARSE 0 0 <value> matches one value). #4592

Merged
merged 2 commits into from
Sep 22, 2020

Conversation

9214
Copy link
Collaborator

@9214 9214 commented Jul 30, 2020

Fixes #4591 by extending the relevant conditional check in ST_DO_ACTION branch: prior to the fix it countered only the 0 <rule> case by jumping over the sub-rule.† Tests are provided.

An interesting realization coming from this PR is that 0 can act as an ad-hoc comment construct in Parse rules, sort of:

comment: 0
parse "Ratsnake" [to end comment "four claps - You did it!"]

† Which should be a single value (see #3679).

@dockimbel dockimbel merged commit fc7067d into red:master Sep 22, 2020
@9214 9214 deleted the issue-4591 branch October 12, 2020 12:07
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

Successfully merging this pull request may close these issues.

PARSE 0 0 <value> matches one value
2 participants