diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-26 23:39:28 +0100 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-26 23:39:28 +0100 |
commit | c493781bfc4c3c35e536d337e1cbb14c93623733 (patch) | |
tree | 31110a249064747dc4b01d2e11cbc1fcb83eb5d0 /src/lexer.mll | |
parent | f9ac80d948ecedcf9e04b94b5b529a31f23589a9 (diff) | |
download | LPC-Projet-c493781bfc4c3c35e536d337e1cbb14c93623733.tar.gz LPC-Projet-c493781bfc4c3c35e536d337e1cbb14c93623733.zip |
Fixed a line-counting bug with short comments.
Diffstat (limited to 'src/lexer.mll')
-rw-r--r-- | src/lexer.mll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lexer.mll b/src/lexer.mll index 19af488..2053581 100644 --- a/src/lexer.mll +++ b/src/lexer.mll @@ -114,7 +114,7 @@ and strval s = parse | _ as c { strval (s ^ (String.make 1 c)) lexbuf } | eof { raise (Lexing_error "Unfinished string") } and short_comment = parse - | '\n' {} + | '\n' { newline lexbuf } | _ { short_comment lexbuf } | eof {} and long_comment = parse |