diff --git a/json_serialization/lexer.nim b/json_serialization/lexer.nim index b3e9123..15eb2c4 100644 --- a/json_serialization/lexer.nim +++ b/json_serialization/lexer.nim @@ -114,6 +114,7 @@ template requireNextChar(lex: JsonLexer): char = lex.read() template enterNestedStructure(lex: JsonLexer, action: untyped) {.dirty.} = + bind errNestedDepthLimit inc lex.depthLimit if lex.conf.nestedDepthLimit > 0 and lex.depthLimit > lex.conf.nestedDepthLimit: