Mercurial > vim
comparison src/vim9compile.c @ 25595:c4e29355cd8b v8.2.3334
patch 8.2.3334: Vim9: not enough tests run with Vim9
Commit: https://github.com/vim/vim/commit/bd77aa92744d79f3ba69aee713739ec17da474f6
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 12 17:06:05 2021 +0200
patch 8.2.3334: Vim9: not enough tests run with Vim9
Problem: Vim9: not enough tests run with Vim9.
Solution: Run a few more tests in Vim9 script and :def function. Fix
islocked(). Fix error for locking local variable.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 12 Aug 2021 17:15:04 +0200 |
parents | ea69398b40d1 |
children | 6f13d9ea0d04 |
comparison
equal
deleted
inserted
replaced
25594:174cf06af294 | 25595:c4e29355cd8b |
---|---|
7431 return OK; | 7431 return OK; |
7432 | 7432 |
7433 // Cannot use :lockvar and :unlockvar on local variables. | 7433 // Cannot use :lockvar and :unlockvar on local variables. |
7434 if (p[1] != ':') | 7434 if (p[1] != ':') |
7435 { | 7435 { |
7436 char_u *end = skip_var_one(p, FALSE); | 7436 char_u *end = find_name_end(p, NULL, NULL, FNE_CHECK_START); |
7437 | 7437 |
7438 if (lookup_local(p, end - p, NULL, cctx) == OK) | 7438 if (lookup_local(p, end - p, NULL, cctx) == OK) |
7439 { | 7439 { |
7440 emsg(_(e_cannot_lock_unlock_local_variable)); | 7440 emsg(_(e_cannot_lock_unlock_local_variable)); |
7441 return FAIL; | 7441 return FAIL; |