From 47ddfcb8ac5711b850d5a793fdda222b501d448f Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Thu, 18 Nov 2021 23:02:47 +0100 Subject: [PATCH] bump dub & dfmt versions --- dub.json | 4 ++-- source/workspaced/com/dfmt.d | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dub.json b/dub.json index 97f8d16..d384631 100644 --- a/dub.json +++ b/dub.json @@ -8,10 +8,10 @@ ], "dependencies": { "workspace-d:dcd": "*", - "dub": "1.24.0", + "dub": "1.26.1", "painlessjson": "1.4.0", "standardpaths": "0.8.1", - "dfmt": "0.13.4", + "dfmt": "0.14.1", "dscanner": "0.11.1", "inifiled": "1.3.3", "libdparse": "0.17.0", diff --git a/source/workspaced/com/dfmt.d b/source/workspaced/com/dfmt.d index 1b71c46..7294e10 100644 --- a/source/workspaced/com/dfmt.d +++ b/source/workspaced/com/dfmt.d @@ -104,6 +104,9 @@ class DfmtComponent : ComponentWrapper case "keep_line_breaks": config.dfmt_keep_line_breaks = val; break; + case "single_indent": + config.dfmt_single_indent = val; + break; default: throw new Exception("Invalid command-line switch"); } @@ -133,7 +136,8 @@ class DfmtComponent : ComponentWrapper "space_before_aa_colon", &handleBooleans, "tab_width", &config.tab_width, "template_constraint_style", &config.dfmt_template_constraint_style, - "keep_line_breaks", &handleBooleans + "keep_line_breaks", &handleBooleans, + "single_indent", &handleBooleans, ); //dfmt on }