Bug 507 : non-matching curly brackets doesn't cause syntax error
Last modified: 2010-03-15 14:42




Status:
RESOLVED
Resolution:
DUPLICATE of bug 6
Priority:
P5
Severity:
normal

 

Reporter:
chrismungbean
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-01-29 07:31
this code compiles and runs despite being syntactically correct.

(auto-format spots that the curly brackets don't match, however.)

void setup() {
if (1 == 2) {
println("the impossible just happened");
}
} else {
println("zzz");
}
}

tested on 0123 on MacOS 10.4.8
Additional Comment #1 From chrismungbean 2007-01-29 07:32
(In reply to comment #0)

> this code compiles and runs despite being syntactically correct.

correction, syntactically **INCORRECT**
:-)
Additional Comment #2 From fry 2007-01-29 16:23
ah, the preprocessor... thanks for the report.
Additional Comment #3 From MrFeinberg 2010-03-15 13:11
This is a duplicate of bug #6 (or, rather, has the same cause). Please close.
Additional Comment #4 From fry 2010-03-15 14:42


*** This bug has been marked as a duplicate of 6 ***