Mercurial > vim
annotate runtime/compiler/php.vim @ 24244:827fcf174f15 v8.2.2663
patch 8.2.2663: Vim9: leaking memory when inline function has an error
Commit: https://github.com/vim/vim/commit/79efa2e3b3cdab8c21d95ba4ed9cb573566af531
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 27 15:40:11 2021 +0100
patch 8.2.2663: Vim9: leaking memory when inline function has an error
Problem: Vim9: leaking memory when inline function has an error.
Solution: Free the partially allocated function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 Mar 2021 15:45:03 +0100 |
parents | f7add3891e95 |
children | e1df51f68736 |
rev | line source |
---|---|
23 | 1 " Vim compiler file |
5161
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
2 " Compiler: PHP CLI |
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> |
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
4 " Last Change: 2013 Jun 25 |
23 | 5 |
6 if exists("current_compiler") | |
7 finish | |
8 endif | |
9 let current_compiler = "php" | |
10 | |
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
12 command -nargs=* CompilerSet setlocal <args> | |
13 endif | |
14 | |
15 let s:cpo_save = &cpo | |
16 set cpo-=C | |
17 | |
18 CompilerSet makeprg=php\ -lq | |
5161
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
19 CompilerSet errorformat=%E<b>%.%#Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />, |
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
20 \%W<b>%.%#Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />, |
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
21 \%E%.%#Parse\ error:\ %m\ in\ %f\ on\ line\ %l, |
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
22 \%W%.%#Notice:\ %m\ in\ %f\ on\ line\ %l, |
f7add3891e95
Updated runtime files. Fix NL translations.
Bram Moolenaar <bram@vim.org>
parents:
36
diff
changeset
|
23 \%-G%.%# |
23 | 24 |
25 let &cpo = s:cpo_save | |
26 unlet s:cpo_save |