fprettify icon indicating copy to clipboard operation
fprettify copied to clipboard

Support for coarray syntax

Open hheinzer opened this issue 2 years ago • 0 comments
trafficstars

With the new Fortran coarrays, formatting results are slightly awkward:

real, allocatable :: a(:)[:]

is formatted into

real, allocatable :: a(:) [:]

Every time the [] operator appears, fprettify inserts a space before it.

The syntax for coarrays requires you to always put an index range () before using the codimension []. This might simplify an implementation.

hheinzer avatar May 19 '23 08:05 hheinzer