fortran-lang / fprettify

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

feature request, adjust space prior / after double colon #84

Closed nbehrnd closed 3 years ago

nbehrnd commented 3 years ago

I run fprettify without additional parameters set on file example.f90 provided in the test files. Apparently, spaces prior / after :: defining variables are not yet adjusted and required manual edit. If true, this would contrast to e.g., == or >= already managed by fprettify 0.3.6. In case I did not missed the correct toggle in the whitespace definitions to tidy this up automatically, I would like to suggest this to be considered in future releases.

double_colon feature_request_double_colon.zip

pseewald commented 3 years ago

I did not dare to change spacing for :: because people often like to vertically align variable definitions manually. I agree however that this should be an optional feature.