mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 8.2.2629: Vim9: error for #{{ is not desired
Problem: Vim9: error for #{{ is not desired. Solution: Adjust the checks. (closes #7990)
This commit is contained in:
@@ -5234,7 +5234,8 @@ ends_excmd2(char_u *cmd_start UNUSED, char_u *cmd)
|
||||
return TRUE;
|
||||
#ifdef FEAT_EVAL
|
||||
if (in_vim9script())
|
||||
return c == '#' && cmd[1] != '{'
|
||||
// # starts a comment, #{ might be a mistake, #{{ can start a fold
|
||||
return c == '#' && (cmd[1] != '{' || cmd[2] == '{')
|
||||
&& (cmd == cmd_start || VIM_ISWHITE(cmd[-1]));
|
||||
#endif
|
||||
return c == '"';
|
||||
|
Reference in New Issue
Block a user