summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2013-11-26 23:39:28 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2013-11-26 23:39:28 +0100
commitc493781bfc4c3c35e536d337e1cbb14c93623733 (patch)
tree31110a249064747dc4b01d2e11cbc1fcb83eb5d0 /src
parentf9ac80d948ecedcf9e04b94b5b529a31f23589a9 (diff)
downloadLPC-Projet-c493781bfc4c3c35e536d337e1cbb14c93623733.tar.gz
LPC-Projet-c493781bfc4c3c35e536d337e1cbb14c93623733.zip
Fixed a line-counting bug with short comments.
Diffstat (limited to 'src')
-rw-r--r--src/lexer.mll2
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