Bram Moolenaar
208f0b48b2
patch 8.2.3021: spaces allowed between option name and "!", "?", etc.
...
Problem: Spaces allowed between option name and "!", "?", etc.
Solution: Disallow spaces in Vim9 script, it was not documented.
(closes #8408 )
2021-06-20 12:40:08 +02:00
Bram Moolenaar
fae55a9cb0
patch 8.2.3016: confusing error when expression is followed by comma
...
Problem: Confusing error when expression is followed by comma.
Solution: Give a different error for trailing text. (closes #8395 )
2021-06-17 22:08:30 +02:00
Bram Moolenaar
8ac681a280
patch 8.2.3004: Vim9: error for missing colon given while skipping
...
Problem: Vim9: error for missing colon given while skipping.
Solution: Do not give the error when skipping. (closes #8385 )
2021-06-15 20:06:34 +02:00
Bram Moolenaar
5072b47a22
patch 8.2.2931: Vim9: line continuation comment uses legacy syntax
...
Problem: Vim9: line continuation comment still uses legacy syntax in one
place.
Solution: Check for #\ instead of "\ earlier. (closes #8316 )
2021-06-03 21:56:10 +02:00
Bram Moolenaar
0f37e3561d
patch 8.2.2925: Vim9: line continuation comment uses legacy syntax
...
Problem: Vim9: line continuation comment uses legacy syntax.
Solution: Check for #\ instead of "\. (closes #8295 )
2021-06-02 15:28:15 +02:00
Bram Moolenaar
7d840e9ac7
patch 8.2.2888: Vim9: "k" command recognized in Vim9 script
...
Problem: Vim9: "k" command recognized in Vim9 script.
Solution: Do not recognize "k" or "s" and "d" with flags.
2021-05-26 21:10:11 +02:00
Bram Moolenaar
b777da9be8
patch 8.2.2878: Vim9: for loop list unpack only allows for one "_"
...
Problem: Vim9: for loop list unpack only allows for one "_".
Solution: Drop the value when the variable is "_". (closes #8232 )
2021-05-22 21:40:39 +02:00
Bram Moolenaar
227c58a486
patch 8.2.2817: Vim9: script sourcing continues after an error
...
Problem: Vim9: script sourcing continues after an error.
Solution: Make an error in any command in "vim9script" abort sourcing.
2021-04-28 20:40:44 +02:00
Bram Moolenaar
c70fe460b0
patch 8.2.2775: Vim9: wrong line number used for some commands
...
Problem: Vim9: wrong line number used for some commands.
Solution: For :exe, :echo and the like use the line number of the start of
the command. When calling a function set the line number in the
script context.
2021-04-17 17:59:19 +02:00
Bram Moolenaar
6c7cc347af
patch 8.2.2774: Vim9: cannot import an existing name even when using "as"
...
Problem: Vim9: cannot import an existing name even when using "as".
Solution: Do not check for an existing name when using "as". (closes #8113 )
2021-04-17 16:38:50 +02:00
Bram Moolenaar
fe090eb58f
patch 8.2.2770: Vim9: type of loop variable is not used
...
Problem: Vim9: type of loop variable is not used.
Solution: Parse and check the variable type. (closes #8107 )
2021-04-15 21:48:32 +02:00
Bram Moolenaar
a3589a0d6c
patch 8.2.2763: Vim9: cannot use type in for loop unpack at script level
...
Problem: Vim9: cannot use type in for loop unpack at script level.
Solution: Advance over the type name.
2021-04-14 13:30:46 +02:00
Bram Moolenaar
f6a8d420a8
patch 8.2.2760: Vim9: no error for changing a for loop variable
...
Problem: Vim9: no error for changing a for loop variable.
Solution: Make the loop variable read-only. (issue #8102 )
2021-04-13 21:48:03 +02:00
Bram Moolenaar
f2253963c2
patch 8.2.2759: Vim9: for loop infers type of loop variable
...
Problem: Vim9: for loop infers type of loop variable.
Solution: Do not get the member type. (closes #8102 )
2021-04-13 20:53:13 +02:00
Bram Moolenaar
fe95b94ffa
patch 8.2.2749: Vim9: test for error can be a bit flaky
...
Problem: Vim9: test for error can be a bit flaky.
Solution: Increase the wait time a bit.
2021-04-10 20:52:43 +02:00
Bram Moolenaar
2a38908b05
patch 8.2.2740: Vim9: lambda with varargs doesn't work
...
Problem: Vim9: lambda with varargs doesn't work.
Solution: Make "...name" work. Require type to be a list.
2021-04-09 20:24:31 +02:00
Bram Moolenaar
767034c5b8
patch 8.2.2739: Vim9: a lambda accepts too many arguments at the script level
...
Problem: Vim9: a lambda accepts too many arguments at the script level.
Solution: Do not set uf_varargs in Vim9 script.
2021-04-09 17:24:52 +02:00
Bram Moolenaar
ca51cc0a33
patch 8.2.2688: Vim9: crash when using s: for script variable
...
Problem: Vim9: crash when using s: for script variable.
Solution: Pass the end pointer. (closes #8045 )
2021-04-01 21:38:53 +02:00
Bram Moolenaar
529fb5a5f6
patch 8.2.2682: Vim9: cannot find Name.Func from "import * as Name"
...
Problem: Vim9: cannot find Name.Func from "import * as Name". (Alexander
Goussas)
Solution: When no variable found try finding a function. (closes #8045 )
Check that the function was exported.
2021-04-01 12:57:57 +02:00
Bram Moolenaar
e535db86e7
patch 8.2.2680: Vim9: problem defining a script variable from legacy function
...
Problem: Vim9: problem defining a script variable from legacy function.
Solution: Check if the script is Vim9, not the current syntax.
(closes #8032 )
2021-03-31 21:07:24 +02:00
Bram Moolenaar
74e54fcb44
patch 8.2.2658: :for cannot loop over a string
...
Problem: :for cannot loop over a string.
Solution: Accept a string argument and iterate over its characters.
2021-03-26 20:41:29 +01:00
Bram Moolenaar
522eefd9a2
patch 8.2.2657: Vim9: error message for declaring variable in for loop
...
Problem: Vim9: error message for declaring variable in for loop.
Solution: Clear variables when entering block again. (closes #8012 )
2021-03-26 18:49:22 +01:00
Bram Moolenaar
4b3e1964d8
patch 8.2.2620: Vim9: Using #{ for a dictionary gives strange errors
...
Problem: Vim9: Using #{ for a dictionary gives strange errors.
Solution: Give an error when using #{ for a comment after a command.
2021-03-18 21:37:55 +01:00
Bram Moolenaar
3e1916947d
patch 8.2.2616: Vim9: if 'cpo' is change in Vim9 script it may be restored
...
Problem: Vim9: if 'cpo' is change in Vim9 script it may be restored.
Solution: Apply the changes to 'cpo' to the restored value.
2021-03-17 17:46:00 +01:00
Bram Moolenaar
a4c81bea38
patch 8.2.2615: test is sourcing the wrong file
...
Problem: Test is sourcing the wrong file.
Solution: Correct the file name.
2021-03-17 15:23:16 +01:00
Bram Moolenaar
c970e4225b
patch 8.2.2614: Vim9: function is deleted while executing
...
Problem: Vim9: function is deleted while executing.
Solution: increment the call count, when more than zero do not delete the
function but mark it as dead. (closes #7977 )
2021-03-17 15:03:04 +01:00
Bram Moolenaar
2e34c34be1
patch 8.2.2602: Vim9: continue doesn't work if :while is very first command
...
Problem: Vim9: continue doesn't work if :while is very first command.
(Yegappan Lakshmanan)
Solution: Add one to the continue instruction index.
2021-03-14 12:13:33 +01:00
Bram Moolenaar
6508880d6c
patch 8.2.2598: Vim9: :open does not need to be supported
...
Problem: Vim9: :open does not need to be supported.
Solution: Do not support :open in Vim9 script.
2021-03-13 21:07:21 +01:00
Bram Moolenaar
cb4e80fab9
patch 8.2.2597: Vim9: "import * as" does not work at script level
...
Problem: Vim9: "import * as" does not work at script level.
Solution: Implement using an imported namespace.
2021-03-13 20:57:19 +01:00
Bram Moolenaar
ffb7dcdb77
patch 8.2.2582: Vim9: screendump test fails on MS-Windows
...
Problem: Vim9: screendump test fails on MS-Windows.
Solution: Use :function instead of :def.
2021-03-10 14:00:18 +01:00
Bram Moolenaar
37294bd6a2
patch 8.2.2581: Vim9: sourcing Vim9 script triggers a redraw
...
Problem: Vim9: sourcing Vim9 script triggers a redraw.
Solution: Do not let setting/restoring 'cpoptions' cause a redraw.
(closes #7920 )
2021-03-10 13:40:08 +01:00
Bram Moolenaar
e3ffcd9902
patch 8.2.2580: Vim9: checking vararg type may be wrong
...
Problem: Vim9: checking vararg type is wrong when function is auto-loaded.
Solution: Use the member type. (closes #7933 )
2021-03-08 21:47:13 +01:00
Bram Moolenaar
6c3843ca8a
patch 8.2.2567: Vim9: no error if variable is defined for existing function
...
Problem: Vim9: no error if variable is defined for existing function.
Solution: Check if name isn't already in use. (closes #7897 )
2021-03-04 12:38:21 +01:00
Bram Moolenaar
057e84afe5
patch 8.2.2558: no error if a lambda argument shadows a variable
...
Problem: No error if a lambda argument shadows a variable.
Solution: Check that the argument name shadows a local, argument or script
variable. (closes #7898 )
2021-02-28 16:55:11 +01:00
Bram Moolenaar
0a84284e60
patch 8.2.2556: Vim9: :import with "as" not fully supported
...
Problem: Vim9: :import with "as" not fully supported.
Solution: Implement "as" for more cases.
2021-02-27 22:41:19 +01:00
Bram Moolenaar
3f1e9f000f
patch 8.2.2555: Vim9: missing test for 8.2.2553
...
Problem: Vim9: missing test for 8.2.2553.
Solution: Add a simple test.
2021-02-27 22:36:43 +01:00
Bram Moolenaar
0f2a5cc68b
patch 8.2.2554: Vim9: exporting a final is not tested
...
Problem: Vim9: exporting a final is not tested.
Solution: Add a test.
2021-02-27 22:33:21 +01:00
Bram Moolenaar
9cb577a682
patch 8.2.2543: Vim9: a return inside try/catch does not restore properly
...
Problem: Vim9: a return inside try/catch does not restore exception state
properly.
Solution: When there is no ":finally" jump to ":endtry". (closes #7882 )
2021-02-22 22:45:10 +01:00
Bram Moolenaar
7e82c5f338
patch 8.2.2539: Vim9: return from finally block causes a hang
...
Problem: Vim9: return from finally block causes a hang.
Solution: Store both the finally and endtry indexes. (closes #7885 )
2021-02-21 21:32:45 +01:00
Bram Moolenaar
ada1d870b4
patch 8.2.2532: Vim9: confusing error if :k is used with a range
...
Problem: Vim9: confusing error if :k is used with a range.
Solution: Give an error about the range. (issue #7874 )
2021-02-20 08:16:51 +01:00
Bram Moolenaar
10b9421f3b
patch 8.2.2531: Vim9: the :k command is obscure
...
Problem: Vim9: the :k command is obscure.
Solution: Disallow using :k, can use :mark instead. (closes #7874 )
2021-02-19 21:42:57 +01:00
Bram Moolenaar
d3f8a9ee65
patch 8.2.2529: Vim9: Not possible to use legacy and Vim9 script in one file
...
Problem: Vim9: Not possible to use legacy and Vim9 script in one file.
Solution: Vim9: allow for "if false" before :vim9script. (closes #7851 )
2021-02-17 21:57:03 +01:00
Bram Moolenaar
b8554304c3
patch 8.2.2519: Vim9: no reason to keep strange Vi behavior
...
Problem: Vim9: no reason to keep strange Vi behavior.
Solution: ":3" and ":3|" both go to line 3. ":|" does not print the line.
(closes #7840 )
2021-02-15 21:30:30 +01:00
Bram Moolenaar
7c5b3c0369
patch 8.2.2517: Vim9: fix for s390 not tested on other systems
...
Problem: Vim9: fix for s390 not tested on other systems.
Solution: Add a test.
2021-02-14 22:40:57 +01:00
Bram Moolenaar
03dfde2b5f
patch 8.2.2512: Vim9: compiling error test sometimes fails
...
Problem: Vim9: compiling error test sometimes fails.
Solution: use WaitForAssert() instead of sleeping for a bit. (Dominique
Pellé, closes #7837 )
2021-02-14 13:17:22 +01:00
Bram Moolenaar
c150c09ec4
patch 8.2.2506: Vim9: :continue does not work correctly in a :try block
...
Problem: Vim9: :continue does not work correctly in a :try block
Solution: Add the TRYCLEANUP instruction. (closes #7827 )
2021-02-13 15:02:46 +01:00
Bram Moolenaar
d9d7789b6f
patch 8.2.2503: Vim9: a caught error may leave something on the stack
...
Problem: Vim9: a caught error may leave something on the stack.
Solution: Drop items from the stack if needed. (closes #7826 )
2021-02-12 21:32:47 +01:00
Bram Moolenaar
0123cc1e14
patch 8.2.2485: when sourcing a script again the script version isn't reset
...
Problem: When sourcing a script again the script version isn't reset.
Solution: Set sn_version to one when sourcing a script again. Clear
sn_save_cpo properly. (closes #7608 )
2021-02-07 17:17:58 +01:00
Bram Moolenaar
dee37dc733
patch 8.2.2484: Vim9: Cannot use a comment starting with #{
...
Problem: Vim9: Cannot use a comment starting with #{ after an expression.
Solution: Remove the check for "{" since #{ dictionaries are not supported.
2021-02-07 16:40:05 +01:00
Bram Moolenaar
6628b7ebff
patch 8.2.2483: Vim9: type error for misformed expression
...
Problem: Vim9: type error for misformed expression.
Solution: Check for end of command before checking type. (closes #7795 )
2021-02-07 16:33:35 +01:00