redbaron icon indicating copy to clipboard operation
redbaron copied to clipboard

Comments in if-statements can chrash redbaron

Open runekaagaard opened this issue 8 years ago • 3 comments

This is valid python code, but chrashes redbaron:

if 42:
    print 1
# This comment breaks the parser.
else:
    print 2

runekaagaard avatar Mar 27 '17 18:03 runekaagaard

Hello,

Thanks for reporting :) This is actually a baron's bug, you can find it here https://github.com/PyCQA/baron/issues/96 or there https://github.com/PyCQA/baron/issues/11

Psycojoker avatar Mar 28 '17 02:03 Psycojoker

Ok, thanks for the references!

runekaagaard avatar Mar 28 '17 10:03 runekaagaard

@runekaagaard I've pushed a fix on baron, can you test it and tells me if it works for you plz?

Psycojoker avatar May 27 '17 16:05 Psycojoker