| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Problem: Spaces allowed between option name and "!", "?", etc.
Solution: Disallow spaces in Vim9 script, it was not documented.
(closes #8408)
|
|
|
|
|
| |
Problem: Confusing error when expression is followed by comma.
Solution: Give a different error for trailing text. (closes #8395)
|
|
|
|
|
| |
Problem: Vim9: error for missing colon given while skipping.
Solution: Do not give the error when skipping. (closes #8385)
|
|
|
|
|
|
| |
Problem: Vim9: line continuation comment still uses legacy syntax in one
place.
Solution: Check for #\ instead of "\ earlier. (closes #8316)
|
|
|
|
|
| |
Problem: Vim9: line continuation comment uses legacy syntax.
Solution: Check for #\ instead of "\. (closes #8295)
|
|
|
|
|
| |
Problem: Vim9: "k" command recognized in Vim9 script.
Solution: Do not recognize "k" or "s" and "d" with flags.
|
|
|
|
|
| |
Problem: Vim9: for loop list unpack only allows for one "_".
Solution: Drop the value when the variable is "_". (closes #8232)
|
|
|
|
|
| |
Problem: Vim9: script sourcing continues after an error.
Solution: Make an error in any command in "vim9script" abort sourcing.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Vim9: cannot import an existing name even when using "as".
Solution: Do not check for an existing name when using "as". (closes #8113)
|
|
|
|
|
| |
Problem: Vim9: type of loop variable is not used.
Solution: Parse and check the variable type. (closes #8107)
|
|
|
|
|
| |
Problem: Vim9: cannot use type in for loop unpack at script level.
Solution: Advance over the type name.
|
|
|
|
|
| |
Problem: Vim9: no error for changing a for loop variable.
Solution: Make the loop variable read-only. (issue #8102)
|
|
|
|
|
| |
Problem: Vim9: for loop infers type of loop variable.
Solution: Do not get the member type. (closes #8102)
|
|
|
|
|
| |
Problem: Vim9: test for error can be a bit flaky.
Solution: Increase the wait time a bit.
|
|
|
|
|
| |
Problem: Vim9: lambda with varargs doesn't work.
Solution: Make "...name" work. Require type to be a list.
|
|
|
|
|
| |
Problem: Vim9: a lambda accepts too many arguments at the script level.
Solution: Do not set uf_varargs in Vim9 script.
|
|
|
|
|
| |
Problem: Vim9: crash when using s: for script variable.
Solution: Pass the end pointer. (closes #8045)
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Problem: Vim9: problem defining a script variable from legacy function.
Solution: Check if the script is Vim9, not the current syntax.
(closes #8032)
|
|
|
|
|
| |
Problem: :for cannot loop over a string.
Solution: Accept a string argument and iterate over its characters.
|
|
|
|
|
| |
Problem: Vim9: error message for declaring variable in for loop.
Solution: Clear variables when entering block again. (closes #8012)
|
|
|
|
|
| |
Problem: Vim9: Using #{ for a dictionary gives strange errors.
Solution: Give an error when using #{ for a comment after a command.
|
|
|
|
|
| |
Problem: Vim9: if 'cpo' is change in Vim9 script it may be restored.
Solution: Apply the changes to 'cpo' to the restored value.
|
|
|
|
|
| |
Problem: Test is sourcing the wrong file.
Solution: Correct the file name.
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
Problem: Vim9: continue doesn't work if :while is very first command.
(Yegappan Lakshmanan)
Solution: Add one to the continue instruction index.
|
|
|
|
|
| |
Problem: Vim9: :open does not need to be supported.
Solution: Do not support :open in Vim9 script.
|
|
|
|
|
| |
Problem: Vim9: "import * as" does not work at script level.
Solution: Implement using an imported namespace.
|
|
|
|
|
| |
Problem: Vim9: screendump test fails on MS-Windows.
Solution: Use :function instead of :def.
|
|
|
|
|
|
| |
Problem: Vim9: sourcing Vim9 script triggers a redraw.
Solution: Do not let setting/restoring 'cpoptions' cause a redraw.
(closes #7920)
|
|
|
|
|
| |
Problem: Vim9: checking vararg type is wrong when function is auto-loaded.
Solution: Use the member type. (closes #7933)
|
|
|
|
|
| |
Problem: Vim9: no error if variable is defined for existing function.
Solution: Check if name isn't already in use. (closes #7897)
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: Vim9: :import with "as" not fully supported.
Solution: Implement "as" for more cases.
|
|
|
|
|
| |
Problem: Vim9: missing test for 8.2.2553.
Solution: Add a simple test.
|
|
|
|
|
| |
Problem: Vim9: exporting a final is not tested.
Solution: Add a test.
|
|
|
|
|
|
| |
Problem: Vim9: a return inside try/catch does not restore exception state
properly.
Solution: When there is no ":finally" jump to ":endtry". (closes #7882)
|
|
|
|
|
| |
Problem: Vim9: return from finally block causes a hang.
Solution: Store both the finally and endtry indexes. (closes #7885)
|
|
|
|
|
| |
Problem: Vim9: confusing error if :k is used with a range.
Solution: Give an error about the range. (issue #7874)
|
|
|
|
|
| |
Problem: Vim9: the :k command is obscure.
Solution: Disallow using :k, can use :mark instead. (closes #7874)
|
|
|
|
|
| |
Problem: Vim9: Not possible to use legacy and Vim9 script in one file.
Solution: Vim9: allow for "if false" before :vim9script. (closes #7851)
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: Vim9: fix for s390 not tested on other systems.
Solution: Add a test.
|
|
|
|
|
|
| |
Problem: Vim9: compiling error test sometimes fails.
Solution: use WaitForAssert() instead of sleeping for a bit. (Dominique
Pellé, closes #7837)
|
|
|
|
|
| |
Problem: Vim9: :continue does not work correctly in a :try block
Solution: Add the TRYCLEANUP instruction. (closes #7827)
|
|
|
|
|
| |
Problem: Vim9: a caught error may leave something on the stack.
Solution: Drop items from the stack if needed. (closes #7826)
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: Vim9: Cannot use a comment starting with #{ after an expression.
Solution: Remove the check for "{" since #{ dictionaries are not supported.
|
|
|
|
|
| |
Problem: Vim9: type error for misformed expression.
Solution: Check for end of command before checking type. (closes #7795)
|