Skip to content

Commit

Permalink
das_source_formatter: fix space before comment inside type
Browse files Browse the repository at this point in the history
  • Loading branch information
imp5imp5 authored Dec 23, 2024
1 parent f84ddac commit cab89f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daslib/das_source_formatter.das
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cab89f4

Please sign in to comment.