BarryG wrote:I'd rather see an error message like this: Opening and closing brackets are mismatched.
Yes, but this would require specific processing (so slow down), because currently this message is generic for a lot of characters.
Give it a try:
( ) { } [ ]
but also, this is the same message for:
# " ' @ ` ^
So '
Garbage at the End of the line' says that the error starts there and that it's useless to go any further.
Same thing for '
Syntax error' this is basic error.
Matching brackets when displaying is a feature of Scintilla in the IDE. For the compiler to do it itself, I think it would require a lot of extra processing.
IMHO