From 0259887791a2f0982e416357e4780ba6c98f1a9f Mon Sep 17 00:00:00 2001 From: Prajwal S N Date: Wed, 13 Dec 2023 18:59:19 +0530 Subject: [PATCH] feat: add `dfmt_space_before_named_arg_colon` Signed-off-by: Prajwal S N --- src/dfmt/ast.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dfmt/ast.d b/src/dfmt/ast.d index a2055d1..7b3b150 100644 --- a/src/dfmt/ast.d +++ b/src/dfmt/ast.d @@ -1077,6 +1077,8 @@ extern (C++) class FormatVisitor : SemanticTimeTransitiveVisitor if (names && i < names.length && (*names)[i]) { write((*names)[i].toString()); + if (config.dfmt_space_before_named_arg_colon) + write(' '); write(": "); } if (!el)