Mercurial > vim
comparison src/proto/vim9compile.pro @ 22596:107eae953b87 v8.2.1846
patch 8.2.1846: Vim9: block variables are not found in compiled function
Commit: https://github.com/vim/vim/commit/fbbcd00367e1a4fafd047d42ffce0e5dce88925c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 15 12:46:44 2020 +0200
patch 8.2.1846: Vim9: block variables are not found in compiled function
Problem: Vim9: variables declared in a local block are not found in
when a function is compiled.
Solution: Look for script variables in sn_all_vars.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 15 Oct 2020 13:00:05 +0200 |
parents | a4ed0de125d9 |
children | a8bccb0634bc |
comparison
equal
deleted
inserted
replaced
22595:a42172375311 | 22596:107eae953b87 |
---|---|
1 /* vim9compile.c */ | 1 /* vim9compile.c */ |
2 int check_defined(char_u *p, size_t len, cctx_T *cctx); | 2 int check_defined(char_u *p, size_t len, cctx_T *cctx); |
3 int check_compare_types(exptype_T type, typval_T *tv1, typval_T *tv2); | 3 int check_compare_types(exptype_T type, typval_T *tv1, typval_T *tv2); |
4 int get_script_item_idx(int sid, char_u *name, int check_writable); | 4 int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx); |
5 imported_T *find_imported(char_u *name, size_t len, cctx_T *cctx); | 5 imported_T *find_imported(char_u *name, size_t len, cctx_T *cctx); |
6 imported_T *find_imported_in_script(char_u *name, size_t len, int sid); | 6 imported_T *find_imported_in_script(char_u *name, size_t len, int sid); |
7 int vim9_comment_start(char_u *p); | 7 int vim9_comment_start(char_u *p); |
8 char_u *peek_next_line_from_context(cctx_T *cctx); | 8 char_u *peek_next_line_from_context(cctx_T *cctx); |
9 char_u *next_line_from_context(cctx_T *cctx, int skip_comment); | 9 char_u *next_line_from_context(cctx_T *cctx, int skip_comment); |