comparison runtime/doc/vim9.txt @ 24911:fd37be6dc258

Update runtime files Commit: https://github.com/vim/vim/commit/2346a6378483c9871016f9fc821ec5cbea638f13 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 13 19:02:49 2021 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Jun 2021 19:15:03 +0200
parents b6ac4ed5e2d2
children 43593a5d873f
comparison
equal deleted inserted replaced
24910:77de4ae3e013 24911:fd37be6dc258
455 To avoid these problems Vim9 script uses a different syntax for a lambda, 455 To avoid these problems Vim9 script uses a different syntax for a lambda,
456 which is similar to JavaScript: > 456 which is similar to JavaScript: >
457 var Lambda = (arg) => expression 457 var Lambda = (arg) => expression
458 458
459 No line break is allowed in the arguments of a lambda up to and including the 459 No line break is allowed in the arguments of a lambda up to and including the
460 "=>". This is OK: > 460 "=>" (so that Vim can tell the difference between an expression in parenthesis
461 and lambda arguments). This is OK: >
461 filter(list, (k, v) => 462 filter(list, (k, v) =>
462 v > 0) 463 v > 0)
463 This does not work: > 464 This does not work: >
464 filter(list, (k, v) 465 filter(list, (k, v)
465 => v > 0) 466 => v > 0)
996 :disa[ssemble] {func} Show the instructions generated for {func}. 997 :disa[ssemble] {func} Show the instructions generated for {func}.
997 This is for debugging and testing. 998 This is for debugging and testing.
998 Note that for command line completion of {func} you 999 Note that for command line completion of {func} you
999 can prepend "s:" to find script-local functions. 1000 can prepend "s:" to find script-local functions.
1000 1001
1001 :disa[ssemble]! {func} Like `:disassemble` but with the instructions used for 1002 :disa[ssemble] profile {func}
1003 Like `:disassemble` but with the instructions used for
1002 profiling. 1004 profiling.
1005
1006 :disa[ssemble] debug {func}
1007 Like `:disassemble` but with the instructions used for
1008 debugging.
1003 1009
1004 Limitations ~ 1010 Limitations ~
1005 1011
1006 Local variables will not be visible to string evaluation. For example: > 1012 Local variables will not be visible to string evaluation. For example: >
1007 def MapList(): list<string> 1013 def MapList(): list<string>