Skip to content

add T_MATCH to nestingIncrements #1

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

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

epic-64
Copy link
Owner

@epic-64 epic-64 commented Feb 23, 2024

The match construct was not considered originally when the package was written.
The same rules as for switch should apply.

Opening a match construct adds 1 complexity (this is already fixed in a previous PR).
However, opening a match construct also should increase nesting level by 1. This is fixed by this PR.

@epic-64 epic-64 merged commit 17d8707 into master Feb 23, 2024
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.

1 participant