Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
ocamllex warning: unescaped newline in comment string #6526
Original bug ID: 6526
Non-terminated double quotes cause ocamllex to emit a warning even when they happen within comments:
This behavior might bother some purists, but it's not clear whether it should be considered a bug.
Comment author: @gasche
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.