Subject: | Roundtrip failure for Method::Signature 'where' clauses containing parentheses in a regex |
Date: | Fri, 26 Apr 2013 20:22:23 +1000 |
To: | bug-Perl-Tidy-Sweetened [...] rt.cpan.org |
From: | Adam Clarke <adam [...] clarke.id.au> |
Hi,
I seem to have found a case that PTS does not cope with. I've attached a working script that does not round trip correctly to demonstrate the behaviour.
In summary, this function ...
func test_a (Any $a where qr{(foo|bar)}) {
return $a;
}
... results in this post perltidier
sub test_a
} ) { #__FUNC (Any $a where qr{(foo|bar)
return $a;
}
Thanks for PTS, it has been making my life better and I am missing it desperately when working on the code that has these where clauses in it.
* Perl-Tidy-Sweetened-0.17
* perl 5, version 16, subversion 2 (v5.16.2) built for darwin-2level
* Darwin hostname 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
--
Adam Clarke
adam@clarke.id.au
Message body is not shown because sender requested not to inline it.