mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
zig fmt: add missed maybe_spaces
This commit is contained in:
@@ -1799,7 +1799,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi
|
||||
break;
|
||||
},
|
||||
.keyword_noalias, .keyword_comptime => {
|
||||
try renderToken(r, last_param_token, .space);
|
||||
try renderToken(r, last_param_token, .maybe_space);
|
||||
last_param_token += 1;
|
||||
},
|
||||
.identifier => {},
|
||||
@@ -1850,7 +1850,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi
|
||||
break;
|
||||
},
|
||||
.keyword_noalias, .keyword_comptime => {
|
||||
try renderToken(r, last_param_token, .space);
|
||||
try renderToken(r, last_param_token, .maybe_space);
|
||||
last_param_token += 1;
|
||||
},
|
||||
.identifier => {},
|
||||
@@ -1868,7 +1868,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi
|
||||
{
|
||||
try renderIdentifier(r, last_param_token, .none, .preserve_when_shadowing); // name
|
||||
last_param_token += 1;
|
||||
try renderToken(r, last_param_token, .space); // :
|
||||
try renderToken(r, last_param_token, .maybe_space); // :
|
||||
last_param_token += 1;
|
||||
}
|
||||
if (tree.tokenTag(last_param_token) == .keyword_anytype) {
|
||||
|
||||
Reference in New Issue
Block a user