GNU bug report logs -
#73218
[PATCH] Fix Fortran indent below do_not_a_loop=42
Previous Next
Reported by: Ken Mankoff <km <at> kenmankoff.com>
Date: Fri, 13 Sep 2024 03:59:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Eli,
On 2024-09-14 at 04:15 -07, Eli Zaretskii <eliz <at> gnu.org> wrote...
>> From: Ken Mankoff <km <at> kenmankoff.com>
>> Cc: 73218 <at> debbugs.gnu.org
>> Date: Fri, 13 Sep 2024 08:44:45 -0700
>>
>> >> --- a/lisp/progmodes/fortran.el
>> >> +++ b/lisp/progmodes/fortran.el
>> >> @@ -1631,7 +1631,7 @@ fortran-calculate-indent
>> >> (setq icol (+ icol fortran-if-indent)))
>> >> ((looking-at "where[ \t]*(.*)[ \t]*\n")
>> >> (setq icol (+ icol fortran-if-indent)))
>> >> - ((looking-at "do\\b")
>> >> + ((looking-at "do[\\ |0-9]+.*=[\\ a-z0-9_]*,[\\ a-z0-9_]*")
>
> Since the SPC is optional in Fortran, how about the following instead?
>
> "do *[0-9]* *[a-z0-9_]+ *= *[a-z0-9_]+ *, *[a-z0-9_]+"
>
Yes this pattern works.
-k.
This bug report was last modified 327 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.