adamkennedy/PPI — pull request #36 by moregan (2014-02-07 06:15:25+00:00)
Title: issue #34 -- Constructor not block

Adds to the lexer's list of operators that if they appear before curly braces imply that be braces are a hash constructor, not a code block. Resolves issues with PPI reported in Perl::Critic tickets:

https://github.com/Perl-Critic/Perl-Critic/issues/192 -- "my $o = shift || {'file' => 1, 'exec' => 1};" "||" was added to operators that imply hash constructor, and by extension so were "&&", "//", "||=", "&&=", and "//=".

https://github.com/Perl-Critic/Perl-Critic/issues/390 -- $condition ? { a=>1 } : { b=>1}