softpano / pythonizer

Translator (or more correctly transcriber) from Perl to Python
http://www.softpanorama.org/Scripting/Pythonorama/Python_for_perl_programmers/Pythonizer/index.shtml
Other
39 stars 17 forks source link

End of block logic is incorrect if expression ends the line with a '}' #85

Open snoopyjc opened 2 years ago

snoopyjc commented 2 years ago

The end of block logic is incorrect if expression ends the line with a }. For example, the first line of the following is being recognized as the end of a block:

  $ratiostd{$region} = sqrt(($ratiocount{$region}*$ratiosquares{$region}
     -$ratiosum{$region}*$ratiosum{$region})
     / ($ratiocount{$region}*($ratiocount{$region}-1)));
snoopyjc commented 2 years ago

Implemented in https://github.com/snoopyjc/pythonizer v0.918