- minor bug fix

SVN=126585
This commit is contained in:
Robert Griesemer 2008-07-09 17:08:20 -07:00
parent d5f4d94b80
commit e4a1fb7e94
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ func (S *Scanner) LineCol(pos int) (line, col int) {
}
for i := 0; i < pos; i++ {
if src[i] != '\n' {
if src[i] == '\n' {
line++;
lpos = i;
}