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
doligez: you have changed the category to OCamldoc as it concerns documentation but I believe the bug is in main OCaml parser code. Is that covered by "OCamldoc" category?
Original bug ID: 6977
Reporter: dsheets
Status: closed (set by @damiendoligez on 2016-02-03T12:44:26Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.3
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @diml @hcarty
Bug description
Quoted source text accuracy in documentation comments is not preserved in the presence of escape sequences occurring within string literals.
This is incorrect behavior when the comment is intended contain example OCaml code which contains string literals which contain escape sequences.
Steps to reproduce
The interface:
val v : int
(**["\xC3"]*)
will result in a comment which contains
["_"]
where the underscores is replaced by byte 195.
Additional information
This issue was discovered by Daniel C. Bünzli.
The text was updated successfully, but these errors were encountered: