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 incorrect recognition of INDENTATION atom caused by "if-else if-else" context, fix #54 #55

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

Conversation

AlbertSGS
Copy link

Issue

An "if-else if-else" block causes the tool to not function as expected and detect it as an INDENTATION atom due to small bug explained in #54.

Fixes #54.

Proposed solution

When detecting INDENTATION atom in an "if else" context, first check the parent context to see whether the parent context is an "if else" context. If so, change the starting index in the 'if else' block currently being analyzed to the ending index of the parent block.

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.

Bug: "if else if" block recognized incorrectly as INDENTATION atom
1 participant