title: Configuring Perl::Tidy to handle custom keywords
body: <p>Is there a straightforward way to configure <a href="https://metacpan.org/pod/distribution/Perl-Tidy/lib/Perl/Tidy.pod" rel="nofollow"><code>Perl::Tidy</code></a> so that it handles correctly custom keywords created with <a href="https://metacpan.org/pod/Devel%3a%3aDeclare" rel="nofollow"><code>Devel::Declare</code></a>?</p>
  
  <p>Specifically, I am using <a href="https://metacpan.org/pod/Sub%3a%3aCurried" rel="nofollow"><code>Sub::Curried</code></a>, which creates a keyword <code>curry</code> that works more or less like <code>sub</code> with method signature in 5.20, but with facilities for currying:</p>
  
  <pre><code>curry add ($x, $y) {
      return $x + $y;
  }
  </code></pre>
  
  <p>Notice that a <code>;</code> is not required, which <code>Perl::Tidy</code> doesn't know since it gives:</p>
  
  <pre><code>curry add( $x, $y ) {
      return $x + $y;
    }
  </code></pre>
  
  <p>With a longer subroutine, it gets worse, with or without <code>;</code>:</p>
  
  <pre><code>curry add( $x, $y ) {
      my $z = $x + $y;
        return $z;
  };
  </code></pre>
  
  <p>I suppose telling <code>Perl::Tidy</code> to treat <code>curry</code> exactly as <code>sub</code> shouldn't be impossible. Alternatively, is there a way at least to have it disregard those sections that it doesn't understand and still tidy up the rest of the file?</p>