fprettify
fprettify copied to clipboard
Formatting stalls when encountering long line with floating point numbers
trafficstars
program test
implicit none
integer :: I, jj
double precision :: A
real(kind=8) :: B ! This is a comment for B
real(kind=8) :: C
A = 1.0d0
I = 1
jj = 59
C = 8132489.0 + 1340811092340917509718095809185.1850918509871095809148509185 + 019780295710958709185098.1095709175091875098109589
end program
The line with the C causes the issue with the following configuration file:
indent = 4
whitespace-comma = true
whitespace-assignment = true
whitespace-decl = true
whitespace-relational = true
whitespace-logical = true
whitespace-print = true
whitespace-type = true
whitespace-intrinsics = true
enable-decl = true
case = [1, 1, 1, 1]