Patch 8.2.1468
Problem: Vim9: invalid error for missing white space.
Solution: Don't skip over white space after index. (closes #6718)
Files: src/eval.c, src/testdir/test_vim9_expr.vim
*** ../vim-8.2.1467/src/eval.c 2020-08-16 17:33:29.513887840 +0200
--- src/eval.c 2020-08-16 18:41:45.771288909 +0200
***************
*** 3624,3630 ****
clear_tv(&var2);
return FAIL;
}
! *arg = skipwhite(*arg + 1); // skip the ']'
}
if (evaluate)
--- 3624,3630 ----
clear_tv(&var2);
return FAIL;
}
! *arg = *arg + 1; // skip over the ']'
}
if (evaluate)
*** ../vim-8.2.1467/src/testdir/test_vim9_expr.vim 2020-08-16
17:33:29.517887810 +0200
--- src/testdir/test_vim9_expr.vim 2020-08-16 18:41:15.463511583 +0200
***************
*** 827,832 ****
--- 827,839 ----
echo len('xxx') == 3
END
CheckScriptSuccess(lines)
+
+ lines =<< trim END
+ vim9script
+ let line = 'abc'
+ echo line[1] =~ '\w'
+ END
+ CheckScriptSuccess(lines)
enddef
func Test_expr4_fails()
*** ../vim-8.2.1467/src/version.c 2020-08-16 18:29:31.480642573 +0200
--- src/version.c 2020-08-16 18:39:42.396194694 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1468,
/**/
--
Don't be humble ... you're not that great.
-- Golda Meir
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202008161643.07GGhJP9614986%40masaka.moolenaar.net.