gregsexton / origami.el

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

folding of `#if 0` is weird #68

Open bymoz089 opened 6 years ago

bymoz089 commented 6 years ago

When folding following code:

#if 0
#endif

#ifdef foo
#endif

it looks like

#if 0
...#endif

#ifdef...#endif

the #if 0folding is inconsistent and provokes user errors (like inserting text between those lines) the newlinecharacter after the 0 should be filtered.