Utop_lexer: to keep semantic consistent with the ocaml compiler, we now consider a combined double-quote to be a legal mark to start a string

This commit is contained in:
ZAN DoYe 2019-05-13 10:47:00 +08:00
父節點 1ae50d3201
當前提交 da0fa23a05
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -203,7 +203,7 @@ and cm_string idx= parse
{
let uChar= Zed_utf8.unsafe_extract uchar 0 in
if Zed_char.is_combining_mark uChar then
(Error, idx)
cm_string idx lexbuf
else
let idx2, terminated= string (idx + 1) true lexbuf in
(String (1, terminated), idx2)