fprettify
fprettify copied to clipboard
fprettify misunderstands Unary operator (`+` and `-`) in `WRITE` statement as Binary
trafficstars
Consider the following code:
PROGRAM UNARY
IMPLICIT NONE
INTEGER :: a, b
a = -42
b = -a
WRITE (*, '(2I6)') -a, -b
END PROGRAM
Here all the occurrence of - is unary operator, but fprettify 0.3.7 adds a space as follows:
@@ -6 +6 @@
- WRITE (*, '(2I6)') -a, -b
+ WRITE (*, '(2I6)') - a, -b