From 1e14cc105848c32420bf36d21267a2abaab5b66a Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Wed, 22 Jul 2026 19:45:46 +0000 Subject: [PATCH 05/25] expand: fix `{:.*}` precision - cursor wasn't advanced past the `*` The `.*` branch set up the precision argument correctly but left the parse cursor on the `*`, so it was then rejected as an unknown type specifier. Seen in `hx` 0.7.0 (`format!("{:.*}", places, x)`). Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_011M9MvswSD3mEeJcBm6S8z7 --- src/expand/format_args.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/expand/format_args.cpp b/src/expand/format_args.cpp index 168749e7..22def503 100644 --- a/src/expand/format_args.cpp +++ b/src/expand/format_args.cpp @@ -404,6 +404,7 @@ namespace { } args.prec = next_free; next_free ++; + s ++; } else if( ::std::isdigit(*s) ) { unsigned int val = 0; -- 2.43.0