Skip to content

SCALRCORE-34472 Variables > Validation conditions with comments can't be evaluated #35

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

petroprotsakh
Copy link
Member

No description provided.

condition = alltrue([ # Who
for val in var.values: // would
/* comment
like */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@petroprotsakh please add something like this, when the inline comment is inside a block comment on the same line as a terminal sequence for the block comment */

Suggested change
like */
// like */

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and any other similar combinations

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@recipe Good catch.
Improved the parser and added more tests.
I'll merge the PR and prepare the release if you're happy with it.

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.

2 participants