From c493781bfc4c3c35e536d337e1cbb14c93623733 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Tue, 26 Nov 2013 23:39:28 +0100 Subject: Fixed a line-counting bug with short comments. --- src/lexer.mll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3