Skip to content

Commit

Permalink
fix(parser): increase maximum nested object depth when skipping a value
Browse files Browse the repository at this point in the history
fixes #7
  • Loading branch information
MichaelMakesGames committed Apr 9, 2024
1 parent 3f017ba commit 2f754e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ fn skip_value<'source>(
lex: &mut Lexer<'source, Token<'source>>,
) -> anyhow::Result<Option<&'source str>> {
let mut token = lex.next();
let mut depth: u8 = 0;
let mut depth: u64 = 0;
while token != None {
match token {
Some(Ok(Token::Text(s))) | Some(Ok(Token::String(s))) => {
Expand Down

0 comments on commit 2f754e1

Please sign in to comment.