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

Exception when block nesting is incorrect #5

Closed
jokjr opened this issue Nov 22, 2021 · 1 comment
Closed

Exception when block nesting is incorrect #5

jokjr opened this issue Nov 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@jokjr
Copy link
Contributor

jokjr commented Nov 22, 2021

Trigger in https://github.com/tykling/ansible-roles , thanks to @tykling for the trigger.

dansabel-empty-pop

(The problem is that we encounter endif twice and close two scopes, one of them begin the for scope. When we then try to pop the endfor scope, we get this exception.

In this case Dansabel should add an annotation and either stop parsing or try to guess what the user meant and continue.

EDIT: It looks like we should also check that what we pop is actually endfor :-)

@jokjr jokjr added the bug Something isn't working label Nov 22, 2021
@jokjr jokjr closed this as completed in ab7c4ef Nov 22, 2021
@jokjr
Copy link
Contributor Author

jokjr commented Nov 22, 2021

Now it looks like this :-)
dansabel-fix-issue-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant