Commit e4a1fb7e authored by Robert Griesemer's avatar Robert Griesemer

- minor bug fix

SVN=126585
parent d5f4d94b
...@@ -387,7 +387,7 @@ func (S *Scanner) LineCol(pos int) (line, col int) { ...@@ -387,7 +387,7 @@ func (S *Scanner) LineCol(pos int) (line, col int) {
} }
for i := 0; i < pos; i++ { for i := 0; i < pos; i++ {
if src[i] != '\n' { if src[i] == '\n' {
line++; line++;
lpos = i; lpos = i;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment