From c83eca6b4b751d95ab8f07c28c433434bfdc8fd9 Mon Sep 17 00:00:00 2001 From: thomasloux Date: Thu, 22 Jan 2026 11:16:11 +0000 Subject: [PATCH] add _pause_ token which return the raw current dict (and remove the _pause_ token) --- src/fiddledyn/parser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fiddledyn/parser.py b/src/fiddledyn/parser.py index a25bd38..12dfcdc 100644 --- a/src/fiddledyn/parser.py +++ b/src/fiddledyn/parser.py @@ -52,6 +52,11 @@ def _parse_recursive(d: tp.Any, ctx: ParserContext) -> tp.Any: # C. Defer Resolution return DeferredReference(ref_id) + # Handle _pause_ token + if "_pause_" in d and d["_pause_"]: + del d["_pause_"] + return d + # 4. Recursive parsing of children (Copy dict to avoid mutating source) parsed_args = {} for k, v in d.items():