diff src/ex_docmd.c @ 23884:00e904bdb8a5 v8.2.2484

patch 8.2.2484: Vim9: Cannot use a comment starting with #{ Commit: https://github.com/vim/vim/commit/dee37dc733df444df1950eb922a35560e4b113d6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 16:40:05 2021 +0100 patch 8.2.2484: Vim9: Cannot use a comment starting with #{ Problem: Vim9: Cannot use a comment starting with #{ after an expression. Solution: Remove the check for "{" since #{ dictionaries are not supported.
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Feb 2021 16:45:04 +0100
parents a7098bc3810e
children 2a885d095bff
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -5212,8 +5212,7 @@ ends_excmd2(char_u *cmd_start UNUSED, ch
 	return TRUE;
 #ifdef FEAT_EVAL
     if (in_vim9script())
-	return c == '#' && cmd[1] != '{'
-				 && (cmd == cmd_start || VIM_ISWHITE(cmd[-1]));
+	return c == '#' && (cmd == cmd_start || VIM_ISWHITE(cmd[-1]));
 #endif
     return c == '"';
 }