Mercurial > vim
comparison runtime/indent/fortran.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | 03fa8a51e9dc |
children | 876fbdd84e52 |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
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: 0.45 | 3 " Version: 0.45 |
4 " Last Change: 2016 Aug. 18 | 4 " Last Change: 2016 Aug. 29 |
5 " Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/> | 5 " Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/> |
6 " Usage: For instructions, do :help fortran-indent from Vim | 6 " Usage: For instructions, do :help fortran-indent from Vim |
7 " Credits: | 7 " Credits: |
8 " Useful suggestions were made by: Albert Oliver Serra and Takuya Fujiwara. | 8 " Useful suggestions were made by: Albert Oliver Serra and Takuya Fujiwara. |
9 | 9 |
150 | 150 |
151 "First continuation line | 151 "First continuation line |
152 if prevstat =~ '&\s*$' && prev2stat !~ '&\s*$' | 152 if prevstat =~ '&\s*$' && prev2stat !~ '&\s*$' |
153 let ind = ind + shiftwidth() | 153 let ind = ind + shiftwidth() |
154 endif | 154 endif |
155 if prevstat =~ '&\s*$' && prevstat =~ '\<else\s*if\>' | |
156 let ind = ind - shiftwidth() | |
157 endif | |
158 "Line after last continuation line | 155 "Line after last continuation line |
159 if prevstat !~ '&\s*$' && prev2stat =~ '&\s*$' && prevstat !~? '\<then\>' | 156 if prevstat !~ '&\s*$' && prev2stat =~ '&\s*$' && prevstat !~? '\<then\>' |
160 let ind = ind - shiftwidth() | 157 let ind = ind - shiftwidth() |
161 endif | 158 endif |
162 | 159 |