Closed sak96 closed 2 years ago
This is a bug. Will find some time to fix it.
finally got some time.
did some digging:
This code in nesting run when token is '}' https://github.com/terryyin/lizard/blob/a2b8cdb5e83a6514c183bc30e59570fadcc1cadd/lizard_ext/lizardns.py#L90
which flows to https://github.com/terryyin/lizard/blob/a2b8cdb5e83a6514c183bc30e59570fadcc1cadd/lizard_ext/lizardns.py#L104
which sets the nesting level to 0 as the token is not if else.
i don't see that this is easily fixable issue. closing as this project is not active. making this issue stale.
For python the nested control structure stack up until a "}" structure is found. had trouble figuring out the issue. This may be because the structure for end of function is marked by "}" in case of C, C++, JAVA, whereas indentation in case of python
for the following code (filename give as comment)
the output was: