0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.1468: Vim9: invalid error for missing white space

Problem:    Vim9: invalid error for missing white space.
Solution:   Don't skip over white space after index. (closes #6718)
This commit is contained in:
Bram Moolenaar
2020-08-16 18:42:53 +02:00
parent e5abf7af08
commit f923571ec1
3 changed files with 10 additions and 1 deletions

View File

@@ -827,6 +827,13 @@ def Test_expr4_vim9script()
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()