Mercurial > vim
comparison src/evalvars.c @ 20111:f40231487a49 v8.2.0611
patch 8.2.0611: Vim9: no check for space before #comment
Commit: https://github.com/vim/vim/commit/faac410409a8d693a0326ad9db42dca85419a391
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 20 17:46:14 2020 +0200
patch 8.2.0611: Vim9: no check for space before #comment
Problem: Vim9: no check for space before #comment.
Solution: Add space checks.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 20 Apr 2020 18:00:03 +0200 |
parents | fda7bed83eb6 |
children | fadb7f84beff |
comparison
equal
deleted
inserted
replaced
20110:e24fd2902727 | 20111:f40231487a49 |
---|---|
735 // ":let" without "=": list variables | 735 // ":let" without "=": list variables |
736 if (*arg == '[') | 736 if (*arg == '[') |
737 emsg(_(e_invarg)); | 737 emsg(_(e_invarg)); |
738 else if (expr[0] == '.') | 738 else if (expr[0] == '.') |
739 emsg(_("E985: .= is not supported with script version 2")); | 739 emsg(_("E985: .= is not supported with script version 2")); |
740 else if (!ends_excmd(*arg)) | 740 else if (!ends_excmd2(eap->cmd, arg)) |
741 // ":let var1 var2" | 741 // ":let var1 var2" |
742 arg = list_arg_vars(eap, arg, &first); | 742 arg = list_arg_vars(eap, arg, &first); |
743 else if (!eap->skip) | 743 else if (!eap->skip) |
744 { | 744 { |
745 // ":let" | 745 // ":let" |
1066 char_u *name_start; | 1066 char_u *name_start; |
1067 char_u *arg_subsc; | 1067 char_u *arg_subsc; |
1068 char_u *tofree; | 1068 char_u *tofree; |
1069 typval_T tv; | 1069 typval_T tv; |
1070 | 1070 |
1071 while (!ends_excmd(*arg) && !got_int) | 1071 while (!ends_excmd2(eap->cmd, arg) && !got_int) |
1072 { | 1072 { |
1073 if (error || eap->skip) | 1073 if (error || eap->skip) |
1074 { | 1074 { |
1075 arg = find_name_end(arg, NULL, NULL, FNE_INCL_BR | FNE_CHECK_START); | 1075 arg = find_name_end(arg, NULL, NULL, FNE_INCL_BR | FNE_CHECK_START); |
1076 if (!VIM_ISWHITE(*arg) && !ends_excmd(*arg)) | 1076 if (!VIM_ISWHITE(*arg) && !ends_excmd(*arg)) |