inpropper indentation in module procedure (v3.1.3)
indent, beautify and relabel Fortran source, generates dependencies
Brought to you by:
willem_vermin
Hi! First, thank you for your very helpful code.
I noticed whenever there is a “module procedure” declaration line with one procedure name, followed by another module procedure declaration with multiple names in a single line, the indentations will be wrong.
An example input:
module test1
implicit none
interface choose_procedure
module procedure pro1
module procedure pro3, pro4
end interface choose_procedure
end module test1
Example, output:
module test1
implicit none
interface choose_procedure
module procedure pro1
module procedure pro3, pro4
end interface choose_procedure
end module test1
I have tested this with version 3.1.1 and 3.1.4~pre2. I've also attached the debug info from the findent version 3.1.4~pre2
Here’s my command line:
./findent -i2 < test1_input.F90 > test1_output.F90
Apparently, the attachment has not been uploaded properly! Here’s the file.
Hi,
thanks for reporting the issue. I will let you know when it is solved,
if possible ;-)
Regards,
Willem Vermin
On 1/3/20 2:38 PM, Meisam Tabriz wrote:
Related
Tickets:
#8You can checkout the devel version (3.1.4~pre3), the problem seems to be
solved. I did not take in account that a 'module procedure' statement
can contain more than one procedures.
In the mean time I will prepare a new distribution.
Willem
With a quick check, this problem seems to be solved. Many thanks for your quick response and fix!
The fixed version is now available as 3.1.4 in 'files'.
Btw: added recognition of NON_RECURSIVE
Never used, I guess, but it is in the standard.