Waldemar Augustyn a écrit :
I have started working on integrating Lexer for D and I noticed an
apparent bug in folding C++ styles.
It appears, folding is confused if braces {} are inside a comment
immediately after //.
To see the bug:
Use scintilla version 1.71 and scite version 1.71
Open file scite/gtk/SciTEGTK.cxx in the SciTE editor (or any other
editor based on scintilla such as Eric3)
On line # 2801, there is a long initialization list which is foldable.
Notice an entry on line 2859. It is a one line comment but is indicated
as foldable.
If you try to fold at line 2801, it will fold all the way to the next
next function, line 3046.
This is incorrect.
If you put a space between "//" and "{" in line 2859, folding works just
fine again.
I don't know if this has been reported. Sorry for the duplicate if it has.
This is not a bug, but a feature, to allow creating arbitrary folding
sections (between //{ and //}).
The "bug" is to put the comment just before the brace... I prefer to put
my comment symbols on column 0, where they stand out better.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest