Skip to content

thijssteel/fortranfixedformlinter

Repository files navigation

fixedformfortranlinter README

Just a small extension that does some formatting for fixed form fortran.

Features

If a line exceeds the 72 column limit, it will be split over two lines and a line continuation character is added. Some attempt at determining the line continuation character is made, with "$" taken as the default.

If a line that is spread over multiple lines can be shortened, the formatter will do so.

It will add/remove whitespaces to ensure one whitespace character occurs after e.g. a comma.

Lastly, the code will be turned into upper case.

Known Issues

Assumes indentation with spaces and and indentation size of 3, does not understand fortran so cannot do stuff like smart indentation or selective formatting.

No option to disable the separate features is provided

Only line continuations directly after the previous line are recognized

Release Notes

0.0.4

With this release, all code sections are turned into upper case for that sweet oldschool vibe

0.0.3

With this release, the formatter also turns upper into lower case for some intrinsics.

0.0.2

With this release, the formatter also removes whitespace between function arguments and operators.

0.0.1

Initial release, only features automatic line continuation.


About

a basic formatter for fortran fixed form

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published