File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/compiler/crystal/tools Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1015,4 +1015,6 @@ describe Crystal::Formatter do
10151015 assert_format " def a\n b(\n 1, # x\n # y\n 2\n )\n end"
10161016 assert_format " def a\n b(\n a: 1, # x\n # y\n b: 2\n )\n end"
10171017 assert_format " def a\n b(\n 1, # x\n # y\n a: 1, # x\n # y\n b: 2 # z\n )\n end"
1018+
1019+ assert_format " def foo(a, **b : Int32)\n end"
10181020end
Original file line number Diff line number Diff line change @@ -1477,10 +1477,8 @@ module Crystal
14771477 comma_written = true
14781478 end
14791479 write_token :"**"
1480- skip_space
1481- check :IDENT
1482- write double_splat
1483- next_token_skip_space
1480+ double_splat.accept self
1481+ skip_space_or_newline
14841482 if block_arg
14851483 check :","
14861484 write " ,"
You can’t perform that action at this time.
0 commit comments