You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you like to provide a patch for this issue? You should be able to fix it in lex/lexer.mll (not parsing/lexer.mll, this is an error about the parsing of .mll files rather than general OCaml files), maybe checking comment_depth to know whether you are in a comment.
Original bug ID: 6526
Reporter: dhekir
Status: closed (set by @damiendoligez on 2015-01-16T23:05:38Z)
Resolution: fixed
Priority: low
Severity: trivial
Version: 4.02.0+beta1 / +rc1
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: tools (ocaml{lex,yacc,dep,debug,...})
Bug description
Non-terminated double quotes cause ocamllex to emit a warning even when they happen within comments:
(*
*)
rule translate = parse
| eof { exit 0 }
ocamllex warning:
File "test.mll", line 2, character 75: unescaped newline in string.
This behavior might bother some purists, but it's not clear whether it should be considered a bug.
The text was updated successfully, but these errors were encountered: