fortran-lang / fprettify

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

Fortran continuation line #43

Closed gihanmudalige closed 5 years ago

gihanmudalige commented 5 years ago

Fortran 77 continuation lines that has the following format gives me errors:

<5 spaces>code <5 spaces>&code e.g. subroutine Test (arg1, arg2, arg3, arg4, arg5, & arg6, arg7, arg8 ) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/fprettify/__init__.py", line 1417, in run strip_comments=args.strip_comments) File "/usr/local/lib/python2.7/dist-packages/fprettify/__init__.py", line 908, in reformat_inplace orig_filename=filename, **kwargs) File "/usr/local/lib/python2.7/dist-packages/fprettify/__init__.py", line 996, in reformat_ffile lines, orig_filename, stream.line_nr) File "/usr/local/lib/python2.7/dist-packages/fprettify/__init__.py", line 1228, in remove_pre_ampersands "Bad continuation line format", filename, line_nr) FprettifyParseException: Bad continuation line format Any idea if this can be fixed ?
pseewald commented 5 years ago

fprettify supports only modern fortran (Fortran 90 upwards)