Skip to content

Commit

Permalink
fix unstopped switch fallthrough in parsing Array
Browse files Browse the repository at this point in the history
  • Loading branch information
arttnba3 committed Nov 26, 2024
1 parent dc7a5a8 commit b0856a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jsovon/parser.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@ arr_elem_parse_start:
case TOKEN_LBRACE:
this->scanner.PushToken(token);
val = this->ParseObject();
break;
case TOKEN_LBRACKET:
this->scanner.PushToken(token);
val = this->ParseArray();
break;
default:
throw ParseError(
std::format("Unexpected ident \"{}\" at line {}, column {}", token.orig_str, token.line, token.off)
Expand Down

0 comments on commit b0856a9

Please sign in to comment.