Page 1 of 1

PostPosted: Sat Mar 31, 2007 3:07 pm
by sangahm
There appears to be a bug in the IDE that incorrectly does not ignore curly brackets after a comment on the same line.

This was a tough one to figure out.

For example, the code below is handled different when outlining is on in the IDE:

handler mainForm.onopen() {
//example to show curly bracket handling

handler mainForm.onopen() {
//example to show curly bracket handling <b>}</b>

In the second example, the first closing curly bracket is treated as if it was not commented out, even though it's on the same line as a comment. Both of these code snippets should be equal, correct?

PostPosted: Tue Apr 10, 2007 4:15 am
by dewey
Does it give you compile errors, or is it just affecting the code completion or function list?

PostPosted: Tue Apr 10, 2007 1:30 pm
by sangahm
It affects mainly outlining, which for me is big in that I use it to check that I didn't leave a "}" out. That would impact compiling, obviously, if the "}" was misinterpreted during compilation.

Clarifying Edit: I never received a compile error, since it was correct in ignoring commented line during compilation. However, if I added another "}" to compensate for the "missing" one, then it would not compile correctly. That's the part where I spent hours trying to get the code right (using outlining), even though it compiled correctly. I felt I was getting lucky when it turned out it was really an error in the outlining.