Fix line numbers when the input contains multiple sequential \n characters.
Fix line numbers when the input contains multiple sequential \n characters.

Fixes: #155

ideadapt/parser-lib,ideadapt/parser-lib,cscott/parser-lib,cscott/parser-lib