To: vim_dev@googlegroups.com Subject: Patch 8.2.1671 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1671 Problem: Vim9: stray error for missing white space. Solution: Do not skip over white space after member. (closes #6817) Files: src/eval.c, src/testdir/test_vim9_expr.vim *** ../vim-8.2.1670/src/eval.c 2020-09-09 22:27:55.425537078 +0200 --- src/eval.c 2020-09-12 21:25:18.574307314 +0200 *************** *** 3586,3592 **** ; if (keylen == 0) return FAIL; ! *arg = skipwhite(key + keylen); } else { --- 3586,3592 ---- ; if (keylen == 0) return FAIL; ! *arg = key + keylen; } else { *** ../vim-8.2.1670/src/testdir/test_vim9_expr.vim 2020-09-12 19:11:19.675415067 +0200 --- src/testdir/test_vim9_expr.vim 2020-09-12 21:25:08.318339240 +0200 *************** *** 2314,2319 **** --- 2314,2329 ---- CheckScriptFailure(['vim9script'] + lines, 'E1030:', 3) enddef + def Test_expr7_dict_subscript() + let lines =<< trim END + vim9script + let l = [#{lnum: 2}, #{lnum: 1}] + let res = l[0].lnum > l[1].lnum + assert_true(res) + END + CheckScriptSuccess(lines) + enddef + def Test_expr7_subscript_linebreak() let range = range( 3) *** ../vim-8.2.1670/src/version.c 2020-09-12 21:04:18.518231440 +0200 --- src/version.c 2020-09-12 21:19:04.467477161 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1671, /**/ -- If an elephant is left tied to a parking meter, the parking fee has to be paid just as it would for a vehicle. [real standing law in Florida, United States of America] /// Bram Moolenaar -- Bram@Moolenaar.net -- 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 ///