parent
1ac1d69f95
commit
4d0b0662ed
|
@ -114,6 +114,7 @@ template requireNextChar(lex: JsonLexer): char =
|
||||||
lex.read()
|
lex.read()
|
||||||
|
|
||||||
template enterNestedStructure(lex: JsonLexer, action: untyped) {.dirty.} =
|
template enterNestedStructure(lex: JsonLexer, action: untyped) {.dirty.} =
|
||||||
|
bind errNestedDepthLimit
|
||||||
inc lex.depthLimit
|
inc lex.depthLimit
|
||||||
if lex.conf.nestedDepthLimit > 0 and
|
if lex.conf.nestedDepthLimit > 0 and
|
||||||
lex.depthLimit > lex.conf.nestedDepthLimit:
|
lex.depthLimit > lex.conf.nestedDepthLimit:
|
||||||
|
|
Loading…
Reference in New Issue