Fix indication of line number at which an parsing error occurred.

I fixed a problem that showing wrong line number at which an parsing error occurred.
e.g. https://gist.github.com/moznion/5261898

But I have no neat idea, so way of this pull-request maybe uncouth...