fortran-lang / fprettify

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

Named BLOCK statements whitespace removal #40

Closed dev-zero closed 5 years ago

dev-zero commented 5 years ago

Spaces between the label and the BLOCK statement are completely removed even though that increases readability and most examples contain them.

try: BLOCK
   [...]
END BLOCK try

becomes

try:BLOCK
   [...]
END BLOCK try

cf https://github.com/dev-zero/cp2k/blob/0292edea3f339209bfa128b2bb39ead5fbfb039c/src/start/libcp2k.F#L436-L443