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 -- [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/202009121927.08CJRZjx1205213%40masaka.moolenaar.net.

Raspunde prin e-mail lui