1
0
forked from aniani/vim

patch 8.2.2680: Vim9: problem defining a script variable from legacy function

Problem:    Vim9: problem defining a script variable from legacy function.
Solution:   Check if the script is Vim9, not the current syntax.
            (closes #8032)
This commit is contained in:
Bram Moolenaar
2021-03-31 21:07:24 +02:00
parent dad4473f02
commit e535db86e7
5 changed files with 57 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
/* vim9script.c */
int in_vim9script(void);
int current_script_is_vim9(void);
void ex_vim9script(exarg_T *eap);
int not_in_vim9(exarg_T *eap);
int vim9_bad_comment(char_u *p);