Mercurial > vim
annotate runtime/compiler/gfortran.vim @ 31517:cd5247f4da06 v9.0.1091
patch 9.0.1091: assignment to non-existing member causes a crash
Commit: https://github.com/vim/vim/commit/f54cedd6763e7727b4bfaeb34bb7c365a17675eb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 23 17:56:27 2022 +0000
patch 9.0.1091: assignment to non-existing member causes a crash
Problem: Assignment to non-existing member causes a crash. (Yegappan
Lakshmanan)
Solution: Give an error message and bail out when a member cannot be found.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 23 Dec 2022 19:00:04 +0100 |
parents | d1e4abe8342c |
children | e1df51f68736 |
rev | line source |
---|---|
2751 | 1 " Compiler: GNU Fortran Compiler |
2 " Maintainer: H Xu <xuhdev@gmail.com> | |
3 " Version: 0.1.3 | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2751
diff
changeset
|
4 " Last Change: 2012 Apr 30 |
2751 | 5 " Homepage: http://www.vim.org/scripts/script.php?script_id=3496 |
6 " https://bitbucket.org/xuhdev/compiler-gfortran.vim | |
7 " License: Same as Vim | |
8 | |
9 if exists('current_compiler') | |
10 finish | |
11 endif | |
12 let current_compiler = 'gfortran' | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2751
diff
changeset
|
13 let s:keepcpo= &cpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2751
diff
changeset
|
14 set cpo&vim |
2751 | 15 |
16 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
17 command -nargs=* CompilerSet setlocal <args> | |
18 endif | |
19 | |
20 CompilerSet errorformat= | |
21 \%A%f:%l.%c:, | |
22 \%-Z%trror:\ %m, | |
23 \%-Z%tarning:\ %m, | |
24 \%-C%.%# | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2751
diff
changeset
|
25 |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2751
diff
changeset
|
26 let &cpo = s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2751
diff
changeset
|
27 unlet s:keepcpo |