terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.85k stars 250 forks source link

[NOT READY TO MERGE] Python expression structures #142

Closed rakhimov closed 4 years ago

rakhimov commented 8 years ago

This PR is to provide examples, solicit ideas, find solutions for fixing issue #141.


This change is Reviewable

rakhimov commented 7 years ago

Use leading newline and space as a hint for statements. However, note that expressions can also be broken into separate lines:

arg = (foo
    if bar
    else
          baz)
terryyin commented 7 years ago

This will need some bracket counting.