From 2f754e129c3387c9a9c5c2b0f1aae22e6f64295c Mon Sep 17 00:00:00 2001 From: Michael Moore Date: Tue, 9 Apr 2024 18:57:35 -0500 Subject: [PATCH] fix(parser): increase maximum nested object depth when skipping a value fixes #7 --- src-tauri/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/parser.rs b/src-tauri/src/parser.rs index f5d6487..a177c15 100644 --- a/src-tauri/src/parser.rs +++ b/src-tauri/src/parser.rs @@ -158,7 +158,7 @@ fn skip_value<'source>( lex: &mut Lexer<'source, Token<'source>>, ) -> anyhow::Result> { 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))) => {