Wikia

Vim Tips Wiki

Changes: Script:2299

Edit

Back to page

(Created page with "{{ScriptComments|fortran.vim : Additional indentation rules for Fortran 95 and Fortran 90}} == Bug: Indent of bare "recursive function" does not work properly == To fix this, ...")
 
(Standard format.)
Line 1: Line 1:
{{ScriptComments|fortran.vim : Additional indentation rules for Fortran 95 and Fortran 90}}
+
{{ScriptComments|fortran: additional indentation rules for Fortran 95 and Fortran 90}}
 
 
== Bug: Indent of bare "recursive function" does not work properly ==
 
   
  +
==Bug: Indent of bare "recursive function" does not work properly==
 
To fix this, change line 57 in fortran.vim from
 
To fix this, change line 57 in fortran.vim from
+
<pre>
<code>
+
if line =~? '^\s*\(\(recursive\s*\)\=pure\|elemental\)\=\s*subroutine'
if line =~? '^\s*\(\(recursive\s*\)\=pure\|elemental\)\=\s*subroutine'
+
</pre>
</code>
 
   
 
to
 
to
  +
<pre>
  +
if line =~? '^\s*\(recursive\s*\)\=\(pure\|elemental\)\=\s*subroutine'
  +
</pre>
  +
--May 3, 2012
   
<code>
+
==Comments==
if line =~? '^\s*\(recursive\s*\)\=\(pure\|elemental\)\=\s*subroutine'
 
</code>
 
 
 
== Comments ==
 

Revision as of 08:14, May 4, 2012

Use this page to discuss script 2299 fortran: additional indentation rules for Fortran 95 and Fortran 90

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Bug: Indent of bare "recursive function" does not work properly

To fix this, change line 57 in fortran.vim from

    if line =~? '^\s*\(\(recursive\s*\)\=pure\|elemental\)\=\s*subroutine'

to

    if line =~? '^\s*\(recursive\s*\)\=\(pure\|elemental\)\=\s*subroutine'

--May 3, 2012

Comments

Around Wikia's network

Random Wiki