0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.2.3021: spaces allowed between option name and "!", "?", etc.

Problem:    Spaces allowed between option name and "!", "?", etc.
Solution:   Disallow spaces in Vim9 script, it was not documented.
            (closes #8408)
This commit is contained in:
Bram Moolenaar
2021-06-20 12:40:08 +02:00
parent 2fb7495686
commit 208f0b48b2
3 changed files with 26 additions and 3 deletions

View File

@@ -1306,9 +1306,10 @@ do_set(
// remember character after option name
afterchar = arg[len];
// skip white space, allow ":set ai ?"
while (VIM_ISWHITE(arg[len]))
++len;
if (!in_vim9script())
// skip white space, allow ":set ai ?", ":set hlsearch !"
while (VIM_ISWHITE(arg[len]))
++len;
adding = FALSE;
prepending = FALSE;