forked from aniani/vim
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.
This commit is contained in:
parent
6628b7ebff
commit
dee37dc733
@ -5212,8 +5212,7 @@ ends_excmd2(char_u *cmd_start UNUSED, char_u *cmd)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
if (in_vim9script())
|
if (in_vim9script())
|
||||||
return c == '#' && cmd[1] != '{'
|
return c == '#' && (cmd == cmd_start || VIM_ISWHITE(cmd[-1]));
|
||||||
&& (cmd == cmd_start || VIM_ISWHITE(cmd[-1]));
|
|
||||||
#endif
|
#endif
|
||||||
return c == '"';
|
return c == '"';
|
||||||
}
|
}
|
||||||
|
@ -2205,6 +2205,10 @@ def Test_while_loop()
|
|||||||
result ..= cnt .. '_'
|
result ..= cnt .. '_'
|
||||||
endwhile
|
endwhile
|
||||||
assert_equal('1_3_', result)
|
assert_equal('1_3_', result)
|
||||||
|
|
||||||
|
var s = ''
|
||||||
|
while s == 'x' #{comment
|
||||||
|
endwhile
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_while_loop_fails()
|
def Test_while_loop_fails()
|
||||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2484,
|
||||||
/**/
|
/**/
|
||||||
2483,
|
2483,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user