Patch 8.2.1452
Problem:    Vim9: dead code in to_name_end().
Solution:   Remove check for lambda and dict, it won't be used.
Files:      src/vim9compile.c


*** ../vim-8.2.1451/src/vim9compile.c   2020-08-13 22:47:20.373992741 +0200
--- src/vim9compile.c   2020-08-14 21:41:35.460062535 +0200
***************
*** 2396,2412 ****
        if (eval_dict(&p, &rettv, NULL, TRUE) == FAIL)
            p = arg;
      }
-     else if (p == arg && *arg == '{')
-     {
-       int         ret = get_lambda_tv(&p, &rettv, NULL);
- 
-       // Can be "{x -> ret}()".
-       // Can be "{'a': 1}->Func()".
-       if (ret == NOTDONE)
-           ret = eval_dict(&p, &rettv, NULL, FALSE);
-       if (ret != OK)
-           p = arg;
-     }
  
      return p;
  }
--- 2396,2401 ----
*** ../vim-8.2.1451/src/version.c       2020-08-14 21:27:34.097321673 +0200
--- src/version.c       2020-08-14 21:42:26.587736002 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     1452,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
202. You're amazed to find out Spam is a food.

 /// 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/202008141943.07EJhJn7137508%40masaka.moolenaar.net.

Raspunde prin e-mail lui