]> git.donarmstrong.com Git - perltidy.git/commitdiff
update docs regarding syntax errors
authorSteve Hancock <perltidy@users.sourceforge.net>
Thu, 1 Oct 2020 18:56:36 +0000 (11:56 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Thu, 1 Oct 2020 18:56:36 +0000 (11:56 -0700)
bin/perltidy

index 45926b67aed2e35da4c4a694775c5c4b771f45d1..c542cb47b8fb857d4986106e8ce41c05a46b6351 100755 (executable)
@@ -1192,7 +1192,8 @@ But the following will give a syntax error:
   # perltidy -nwrs='+', syntax error:
   for my $severity ( reverse $SEVERITY_LOWEST +1 .. $SEVERITY_HIGHEST ) { ... }
 
-As a general rule, it seems best to keep whitespace balanced around binary operators.
+To avoid subtle parsing problems like this, it is best to avoid spacing a
+binary operator asymetrically with a space on the left but not on the right.
 
 =item Space between specific keywords and opening paren