comparison runtime/indent/fortran.vim @ 20115:bd021eb62e73

Update runtime files Commit: https://github.com/vim/vim/commit/2c7f8c574f1f8723d59adca3fec8fb89c41cf8c9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 20 19:52:53 2020 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Apr 2020 20:00:05 +0200
parents 368468ef35cf
children 17c4178f26ea
comparison
equal deleted inserted replaced
20114:80e88fbca4ea 20115:bd021eb62e73
1 " Vim indent file 1 " Vim indent file
2 " Language: Fortran 2008 (and older: Fortran 2003, 95, 90, and 77) 2 " Language: Fortran 2008 (and older: Fortran 2003, 95, 90, and 77)
3 " Version: 47 3 " Version: 47
4 " Last Change: 2016 Oct. 29 4 " Last Change: 2020 Apr 20
5 " Patched By: Eisuke Kawashima
5 " Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/> 6 " Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
6 " Usage: For instructions, do :help fortran-indent from Vim 7 " Usage: For instructions, do :help fortran-indent from Vim
7 " Credits: 8 " Credits:
8 " Useful suggestions were made, in chronological order, by: 9 " Useful suggestions were made, in chronological order, by:
9 " Albert Oliver Serra, Takuya Fujiwara and Philipp Edelmann. 10 " Albert Oliver Serra, Takuya Fujiwara and Philipp Edelmann.
37 " User guarantees free source form 38 " User guarantees free source form
38 let b:fortran_fixed_source = 0 39 let b:fortran_fixed_source = 0
39 elseif exists("fortran_fixed_source") 40 elseif exists("fortran_fixed_source")
40 " User guarantees fixed source form 41 " User guarantees fixed source form
41 let b:fortran_fixed_source = 1 42 let b:fortran_fixed_source = 1
42 elseif expand("%:e") ==? "f\<90\|95\|03\|08\>" 43 elseif expand("%:e") =~? '^f\%(90\|95\|03\|08\)$'
43 " Free-form file extension defaults as in Intel ifort, gcc(gfortran), NAG, Pathscale, and Cray compilers 44 " Free-form file extension defaults as in Intel ifort, gcc(gfortran), NAG, Pathscale, and Cray compilers
44 let b:fortran_fixed_source = 0 45 let b:fortran_fixed_source = 0
45 elseif expand("%:e") ==? "f\|f77\|for" 46 elseif expand("%:e") =~? '^\%(f\|f77\|for\)$'
46 " Fixed-form file extension defaults 47 " Fixed-form file extension defaults
47 let b:fortran_fixed_source = 1 48 let b:fortran_fixed_source = 1
48 else 49 else
49 " Modern fortran still allows both fixed and free source form 50 " Modern fortran still allows both fixed and free source form
50 " Assume fixed source form unless signs of free source form 51 " Assume fixed source form unless signs of free source form