summaryrefslogtreecommitdiffstats
path: root/parsing
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2010-04-07 14:35:46 +0000
committerDamien Doligez <damien.doligez-inria.fr>2010-04-07 14:35:46 +0000
commitcfd555426d1d99c104669d05432f689f025ea374 (patch)
treeedb4d3230065c2be5837dc60f4d8625a2a934c04 /parsing
parenta034508f080b883d3b3f96ec2dfe5c545070f3e8 (diff)
no warning 29 for strings in comments
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10248 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'parsing')
-rw-r--r--parsing/lexer.mll3
1 files changed, 2 insertions, 1 deletions
diff --git a/parsing/lexer.mll b/parsing/lexer.mll
index 37ef2ccee..4119945d7 100644
--- a/parsing/lexer.mll
+++ b/parsing/lexer.mll
@@ -490,7 +490,8 @@ and string = parse
end
}
| newline
- { Location.prerr_warning (Location.curr lexbuf) Warnings.Eol_in_string;
+ { if not (in_comment ()) then
+ Location.prerr_warning (Location.curr lexbuf) Warnings.Eol_in_string;
update_loc lexbuf None 1 false 0;
let s = Lexing.lexeme lexbuf in
for i = 0 to String.length s - 1 do