runtime(fortran): update syntax and ftplugins
closes: #13629 Signed-off-by: Ajit-Thakkar <142174202+Ajit-Thakkar@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
4e043b1fc7
commit
6863084d3b
@ -1,7 +1,8 @@
|
||||
" Vim settings file
|
||||
" Language: Fortran 2008 (and older: Fortran 2003, 95, 90, 77, 66)
|
||||
" Version: (v53) 2021 April 06 (updated 2022 May 22)
|
||||
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
|
||||
" Version: (v54) 2023 December 5
|
||||
" Maintainers: Ajit J. Thakkar <ajit@unb.ca>; <https://ajit.ext.unb.ca/>
|
||||
" Joshua Hollett <j.hollett@uwinnipeg.ca>
|
||||
" Usage: For instructions, do :help fortran-plugin from Vim
|
||||
" Credits:
|
||||
" Version 0.1 was created in September 2000 by Ajit Thakkar.
|
||||
@ -39,7 +40,7 @@ if !exists("b:fortran_fixed_source")
|
||||
" Fixed-form file extension defaults
|
||||
let b:fortran_fixed_source = 1
|
||||
else
|
||||
" Modern fortran still allows both fixed and free source form
|
||||
" Modern fortran compilers still allow both fixed and free source form
|
||||
" Assume fixed source form unless signs of free source form
|
||||
" are detected in the first five columns of the first s:lmax lines.
|
||||
" Detection becomes more accurate and time-consuming if more lines
|
||||
@ -70,14 +71,14 @@ if (b:fortran_fixed_source == 1)
|
||||
" but some vendor extensions allow longer lines
|
||||
if exists("fortran_extended_line_length")
|
||||
setlocal tw=132
|
||||
elseif exists("fortran_cardimage_line_length")
|
||||
setlocal tw=80
|
||||
else
|
||||
setlocal tw=72
|
||||
" The use of columns 73-80 for sequence numbers is obsolete
|
||||
" so almost all compilers allow a textwidth of 80
|
||||
setlocal tw=80
|
||||
" If you need to add "&" on continued lines so that the code is
|
||||
" compatible with both free and fixed format, then you should do so
|
||||
" in column 73 and uncomment the next line
|
||||
" setlocal tw=73
|
||||
" in column 81 and uncomment the next line
|
||||
" setlocal tw=81
|
||||
endif
|
||||
else
|
||||
setlocal comments=:!
|
||||
|
||||
Reference in New Issue
Block a user