gregsexton / origami.el

A folding minor mode for Emacs
516 stars 41 forks source link

Folding a node with a comment directly above it #33

Closed dieggsy closed 8 years ago

dieggsy commented 8 years ago

In python.el, if there is a comment directly above a function, for loop, etc., I'm getting text folded into the comment line, rather than into the def,for,if, etc.

gregsexton commented 8 years ago

This is expected behaviour. There isn't a python-specifc parser so we just use indentation as a guide. origami is unable to tell the difference between a comment and a function.

See #22

indigoviolet commented 8 years ago

Any chance we can fix this for ruby as well?

gregsexton commented 8 years ago

See #11