annotate runtime/compiler/fortran_elf90.vim @ 26296:9f32ccdadd22 v8.2.3679

patch 8.2.3679: objc file detected as Octave Commit: https://github.com/vim/vim/commit/7329cfab36356c48edab7ed68f6244eb9e20a5b1 Author: Doug Kearns <dougkearns@gmail.com> Date: Fri Nov 26 13:01:41 2021 +0000 patch 8.2.3679: objc file detected as Octave Problem: objc file detected as Octave. (Antony Lee) Solution: Detect objc by preprocessor lines. (Doug Kearns, closes https://github.com/vim/vim/issues/9223, closes #9220)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Nov 2021 14:15:05 +0100
parents 3fc0f57ecb91
children e1df51f68736
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim compiler file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Compiler: Essential Lahey Fortran 90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Probably also works for Lahey Fortran 90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.unb.ca/chem/ajit/compiler/fortran_elf90.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Maintainer: Ajit J. Thakkar (ajit AT unb.ca); <http://www.unb.ca/chem/ajit/>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Version: 0.2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Last Change: 2004 Mar 27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 let current_compiler = "fortran_elf90"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 command -nargs=* CompilerSet setlocal <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 let s:cposet=&cpoptions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 set cpoptions-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 CompilerSet errorformat=\%ALine\ %l\\,\ file\ %f,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 \%C%tARNING\ --%m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 \%C%tATAL\ --%m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 \%C%tBORT\ --%m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 \%+C%\\l%.%#\.,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 \%C%p\|,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 \%C%.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 \%Z%$,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 \%-G%.%#
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 CompilerSet makeprg=elf90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 let &cpoptions=s:cposet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 unlet s:cposet