Open NiklasRosenstein opened 2 years ago
Reproduction
$ cat <<EOF | python -m craftr.dsl -EC print "Hello World" # hello print "And again" EOF __closure__['print']('Hello World', __closure__['print'], 'And again')
Adding a newline after the comment separates the two calls as expected
__closure__['print']('Hello World') __closure__['print']('And again')
This also happens with the del keyword, but it works as expected when there's no inline-comment.
del
This fails:
del data[0] # Foo
Because it tries to parse it as
del(data[0] # Foo
Reproduction
Adding a newline after the comment separates the two calls as expected