git.annexia.org
/
goals.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parser: Fix tracking of beginning of line for error messages.
[goals.git]
/
src
/
lexer.mll
diff --git
a/src/lexer.mll
b/src/lexer.mll
index
ae4a030
..
8f56d5b
100644
(file)
--- a/
src/lexer.mll
+++ b/
src/lexer.mll
@@
-28,7
+28,7
@@
exception SyntaxError of string
let new_line lexbuf =
let pos = lexbuf.lex_curr_p in
lexbuf.lex_curr_p <-
- { pos with pos_bol =
lexbuf.lex_curr_pos
; pos_lnum = pos.pos_lnum + 1 }
+ { pos with pos_bol =
pos.pos_cnum
; pos_lnum = pos.pos_lnum + 1 }
}
let white = [' ' '\t']+