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:
parent
1ae50d3201
commit
da0fa23a05
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue