Robert Roessler wrote:
SourceForge.net wrote:
Bugs item #1465936, was opened at 2006-04-06 19:46
Message generated for change (Tracker Item Submitted) made by Item
Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1465936&group_id=2439
...
Submitted By: Nick Treleaven (ntrel)
Assigned to: Nobody/Anonymous (nobody)
Summary: SciTE C brace folding does not ignore single line comments
Initial Comment:
With Scintilla/SciTE 1.68 (Gtk2), C/C++ styling, a
single line comment will still add folding for the {
opening brace.
Sample C/C++ code:
int wah()
{
//{}
}
int jah()
{
}
The // line will have a fold, which when toggled will
hide all the code until the } closing brace of the
jah() function.
I copied the above code into 1.68 running on XP SP2... and I do not
see the stated behavior.
I am not a big folding advocate [yet], and think that having *any*
folding controls/indicators for the "//{}" line is fairly meaningless,
but a "-" is present on that line, and activating it *does* suck up
the rest of the "wah()" function... but that is all it does. I.E., it
does not also gobble up the "jah()" function.
So this is either a) not a bug, or b) is a bug, but with more limited
scope than what you are seeing. ;)
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest
I noticed this behavior before, the reason you don't see it as a bug, is
because you are using -/+ symbols for folding, try to use the 'square
tree' or 'circular tree' (the circle with + in it or the box with +/- in
it).
The bug that having '//' followed immediately by a '{' is a feature -
even though I think it is a bug and not a feature.
Eran
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest