From: Steve Hancock <perltidy@users.sourceforge.net> Date: Thu, 11 Jun 2020 14:12:31 +0000 (-0700) Subject: update docs X-Git-Tag: 20200619~6 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9c625880221169586d8657c36d5acf00b25b5415;p=perltidy.git update docs --- diff --git a/CHANGES.md b/CHANGES.md index 4d765afe..28d4f9f6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,8 @@ ## 2020 01 10.01 + - Added support for Switch::Plain syntax, issue git #31. + - Fixed minor problem where trailing 'unless' clauses were not getting vertically aligned. diff --git a/bin/perltidy b/bin/perltidy index f78b1fb4..04c43631 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -551,6 +551,10 @@ a syntax error and the braces would not be balanced: $self->balance( $self->balance + $amount ); } +For one of the extensions, module Switch::Plain, colons are marked as labels. +If you use this module, you may want to also use the B<--nooutdent-labels> flag +to prevent lines such as 'default:' from being outdented. + This flag is enabled by default but it can be deactivated with B<-nxs>. Probably the only reason to deactivate this flag is to generate more diagnostic messages when debugging a script.