On 6 November 2010 07:30, WILLIAM FRASER william.fraser@virgin.net wrote:
Hello all, I've spotted what might be two problems with folding... They are demonstrated with the following line of Java code:
Image[] AnnimationPics; //{picture number,delay in 10ths of a second until changes to next image}
This line is marked as a folding point when it should not be.
Firstly: the curly braces ought to be ignored as they are in a comment (it is coloured by the lexer as a comment)
Secondly: even if it is not ignored there is a matching close brace for the open brace and so when you try to fold this line it should do nothing (instead it hides every line after this line, or crashes...)
I am assuming that this a problem with folding, or is it the lexer?
Folding is also determined by the Lexer, so its both :-)
I'm not sure why, but if it makes //{ and //} fold points but doesn't search any further in the comment so the } is ignored.
Cheers Lex
William
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel