raku-mode icon indicating copy to clipboard operation
raku-mode copied to clipboard

Broken indentation when using `$foo.method: bar` syntax

Open AlexDaniel opened this issue 6 years ago • 0 comments

With the given code, possible ways to indent it are:

my $resp = await Cro::HTTP::Client.patch: $url, :$headers,
           :%body, content-type => ‘application/json’;

Or:

my $resp = await Cro::HTTP::Client.patch: $url, :$headers,
                                          :%body, content-type => ‘application/json’;

However, perl6-mode does this:

my $resp = await Cro::HTTP::Client.patch: $url, :$headers,
:%body, content-type => ‘application/json’;

AlexDaniel avatar Jul 18 '19 23:07 AlexDaniel