Have a look at if-elsif weirdness (and the explanation at Re: if-elsif weirdness) where the same issue was addressed some time ago.
It looks like it's either a well known bug or a behavior which most of the people are happy living with. :)
In reply to Re: Error messages point to wrong line number in if-elsif construct
by cchampion
in thread Error messages point to wrong line number in if-elsif construct
by Sandy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |