Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Tidy-Sweetened CPAN distribution.

Report information
The Basics
Id: 84868
Status: resolved
Priority: 0/
Queue: Perl-Tidy-Sweetened

People
Owner: mgrimes [...] cpan.org
Requestors: adam [...] clarke.id.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.

Subject: Re: [rt.cpan.org #84868] Test for Method::Signature 'where' clauses containing parentheses in a regex
Date: Fri, 26 Apr 2013 23:08:37 +1000
To: bug-Perl-Tidy-Sweetened [...] rt.cpan.org
From: Adam Clarke <adam [...] clarke.id.au>
Here is a diff against t/method-signature-simple.t which adds failing tests for this case but the lines are quite a bit longer then the existing ones so may be too ugly?

Message body is not shown because sender requested not to inline it.

Adam, Thanks for bug report. I appreciate the comments about perltidier being useful, and the detail in your report made it easy to reproduce the bug. I've just released a new version to CPAN (v0.18) that should fix the problem. Please let me know if it it doesn't work for you. Thanks, Mark