From 5a39d7b8bd24c1bd40f1637bbf52cb75dda31f86 Mon Sep 17 00:00:00 2001 From: imp5imp5 <34108613+imp5imp5@users.noreply.github.com> Date: Mon, 23 Dec 2024 18:33:02 +0300 Subject: [PATCH] das_source_formatter: fix space before comment inside type (#1444) --- daslib/das_source_formatter.das | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daslib/das_source_formatter.das b/daslib/das_source_formatter.das index 39ea1c623..b6164a9b1 100644 --- a/daslib/das_source_formatter.das +++ b/daslib/das_source_formatter.das @@ -911,7 +911,7 @@ def fmt_space_after_cast_type(var ctx: FormatterCtx) if ctx.tokens[i].tokenType == TokenType KEYWORD_OR_IDENTIFIER if (type_after_keyword |> find_index(ctx.tokens[i].str) >= 0) for j in range(i + 2, length(ctx.tokens)) - if !ctx.tokens[j].isInType + if !ctx.tokens[j].isInType && ctx.tokens[j].tokenType != TokenType COMMENT ctx |> add_space_before(j) break