fortran-lang / fprettify

auto-formatter for modern fortran source code
https://pypi.python.org/pypi/fprettify
Other
368 stars 73 forks source link

Feature request: Support the letters q and Q in the expression of quadruple precision variables. #144

Open kohei-noda-qcrg opened 1 year ago

kohei-noda-qcrg commented 1 year ago

Writing code with the following notation in quadruple precision would result in wasted spaces that would cause the compilation to fail, as shown below code

real(16) :: r
r=1.0q-10

The above code is formatted as follows

real(16) :: r
r = 1.0q - 10

The expected formatting is as follows

real(16) :: r
r = 1.0q-10

Adding the --disable-whitespace option prevent this problem, but it would also ignore all other whitespace-related formats, so it would be preferable to support quadruple precision q and Q representations, but I'm not sure.