Mercurial > vim
comparison src/userfunc.c @ 20945:0653b9b72091 v8.2.1024
patch 8.2.1024: Vim9: no error for using "let g:var = val"
Commit: https://github.com/vim/vim/commit/6797966dfc0219313886be55767e53d5a388b5c5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 20 22:50:47 2020 +0200
patch 8.2.1024: Vim9: no error for using "let g:var = val"
Problem: Vim9: no error for using "let g:var = val".
Solution: Add an error.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 20 Jun 2020 23:00:04 +0200 |
parents | 1693ca876049 |
children | 7ee565134d4a |
comparison
equal
deleted
inserted
replaced
20944:75df4be5ecd8 | 20945:0653b9b72091 |
---|---|
3323 is_export = FALSE; | 3323 is_export = FALSE; |
3324 } | 3324 } |
3325 | 3325 |
3326 if (eap->cmdidx == CMD_def) | 3326 if (eap->cmdidx == CMD_def) |
3327 set_function_type(fp); | 3327 set_function_type(fp); |
3328 else if (fp->uf_script_ctx.sc_version == SCRIPT_VERSION_VIM9) | |
3329 // :func does not use Vim9 script syntax, even in a Vim9 script file | |
3330 fp->uf_script_ctx.sc_version = SCRIPT_VERSION_MAX; | |
3328 | 3331 |
3329 goto ret_free; | 3332 goto ret_free; |
3330 | 3333 |
3331 erret: | 3334 erret: |
3332 ga_clear_strings(&newargs); | 3335 ga_clear_strings(&newargs); |