2 opens on a line not working ( the way I expected, anyway)

This forum should be used for all code folding problems, questions or suggestions. You can also use this forum to request folding support for a new language.
Post Reply
Posts: 61
Joined: Fri Jun 16, 2006 8:50 pm

2 opens on a line not working ( the way I expected, anyway)

Post by JackR » Mon Apr 02, 2007 4:23 pm

Hu Jussij,

I believe I found a bug in code folding. I am using version 3.95z of zeus. The one line comment below folds correctly. The 2 line comment does not probably because the 2 openings are on the same line. It just folds the comment. I never really understood why comments fold anyway, since I like folding to hide details, not the overview which comments contain.

{ /* one line comment OK*/

{ /* 2 line comment
continued Not OK */



Site Admin
Posts: 2461
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Mon Apr 02, 2007 5:45 pm

Unfortunatately, due to limitations in the design the code folding algorithm, it only allows one fold point per line. This means if a line contains two or more fold points, only one point will be counted and the other fold points are effectively lost.

This results in the unbalanced fold stituation you have described :(

Cheers Jussi

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 3 guests