Skip to content

Commit 0c43e1b

Browse files
committed
Bug fix for JSON scanner
1 parent 601fbfa commit 0c43e1b

File tree

2 files changed

+223
-216
lines changed

2 files changed

+223
-216
lines changed

json.lex

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
<INITIAL>{int}{frac}{exp} => ( float yytext );
6262

6363
<INITIAL>"\"" => ( YYBEGIN S; continue() );
64-
<S>"\\\"" => ( addStr "\\"; continue() );
64+
<S>"\\\\" => ( addStr "\\"; continue() );
65+
<S>"\\\"" => ( addStr "\""; continue() );
6566
<S>"\\/" => ( addStr "/"; continue() );
6667
<S>"\\b" => ( addStr "\b"; continue() );
6768
<S>"\\f" => ( addStr "\f"; continue() );

0 commit comments

Comments
 (0)