Skip to content

Commit 3d59826

Browse files
committed
Compiler: fix js lexer, newline after backslash
1 parent b27cefd commit 3d59826

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/js_lexer.mll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ and string_quote q buf = parse
284284
if q = q'
285285
then ()
286286
else (Buffer.add_char buf q'; string_quote q buf lexbuf) }
287+
| "\\\n" { string_quote q buf lexbuf }
287288
| '\\' {
288289
string_escape q buf lexbuf;
289290
string_quote q buf lexbuf

0 commit comments

Comments
 (0)