| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Problem: Vim9: for loop variable can be a list member.
Solution: Check for valid variable name. (closes #9179)
|
|
|
|
|
| |
Problem: Vim9: error for variable declared in while loop.
Solution: Do not keep the first variable. (closes #9191)
|
|
|
|
|
| |
Problem: Typos in test files.
Solution: Correct the typos. (Dominique Pellé, closes #9175)
|
|
|
|
|
| |
Problem: Vim9: asserting the wrong variable.
Solution: Don't use Foo, use Goo.
|
|
|
|
|
| |
Problem: Vim9: cannot call imported funcref at script level.
Solution: Check for an imported function. (closes #9007)
|
|
|
|
|
| |
Problem: MS-Windows Vim9: test executed and fails.
Solution: Add extra check for not being on MS-Windows.
|
|
|
|
|
| |
Problem: Vim9: too many characters are allowed in import name.
Solution: Disallow ':' and '#', check for white space. (closes #8845)
|
|
|
|
|
| |
Problem: Vim9: importing the wrong file.
Solution: Correct the file name. Delete the file afterwards.
|
|
|
|
|
| |
Problem: Vim9: crash when using base name of import. (Naohiro Ono)
Solution: Check the import flags. (closes #8843)
|
|
|
|
|
| |
Problem: Vim9: crash when :for is skipped.
Solution: Skip more code generation. (Naruhiko Nishino, closes #8777)
|
|
|
|
|
|
|
| |
Problem: When :edit reuses the current buffer the alternate file is set to
the same buffer.
Solution: Only set the alternate file when not reusing the buffer.
(closes #8783)
|
|
|
|
|
| |
Problem: Vim9: crash with nested :while.
Solution: Handle skipping better. (Naruhiko Nishino, closes #8778)
|
|
|
|
|
| |
Problem: Vim9: type of argument for negate not checked at compile time.
Solution: Add a compile time check.
|
|
|
|
|
| |
Problem: Vim9: after "if false" line breaks in expression not skipped.
Solution: Do parse the expression. (closes #8723)
|
|
|
|
|
| |
Problem: Vim9: :echoconsole cannot access local variables.
Solution: Handle like other :echo commands. (closes #8708)
|
|
|
|
|
|
| |
Problem: Vim9: :finally in skipped block not handled correctly.
Solution: Check whether :finally is in a skipped block. (Naruhiko Nishino,
closes #8724)
|
|
|
|
|
| |
Problem: Vim9: TODO items in tests can be taken care of.
Solution: Update test for now working functionality. (closes #8694)
|
|
|
|
|
| |
Problem: Vim9: cannot use :command or :au with a block in a :def function.
Solution: Recognize the start of the block.
|
|
|
|
|
| |
Problem: Vim9: error for re-imported function with default argument.
Solution: Do not check argument type if it is still unknown. (closes #8653)
|
|
|
|
|
| |
Problem: Vim9: error message for wrong input uses wrong line number.
Solution: Use the line number of the start of the command. (issue #8653)
|
|
|
|
|
|
| |
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646)
|
|
|
|
|
| |
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632)
|
|
|
|
|
|
|
| |
Problem: Vim9: crash when using variable in a loop at script level.
Solution: Do not clear the variable if a function was defined.
Do not create a new entry in sn_var_vals every time.
(closes #8628)
|
|
|
|
|
| |
Problem: Vim9: error when using "try|".
Solution: Allow for "|" right after a command.
|
|
|
|
|
| |
Problem: Vim9: not all failures for import tested
Solution: Test more import failures
|
|
|
|
|
| |
Problem: Vim9: cannot assign to an imported variable at script level.
Solution: Lookup imported items when assigning.
|
|
|
|
|
|
| |
Problem: Vim9: the file name of an :import cannot be an expression.
Solution: Accept an expression that results in a string. Do not support
:import in a function.
|
|
|
|
|
| |
Problem: Vim9: can not use "for _ in expr" at script level.
Solution: Skip assignment if the loop variable is "_".
|
|
|
|
|
|
| |
Problem: Vim9: nested autoload call error overruled by "Unknown error".
Solution: Check need_rethrow before giving an "Unknown error".
(closes #8568)
|
|
|
|
|
| |
Problem: Vim9: profiling fails if nested function is also profiled.
Solution: Use the compile type from the outer function. (closes #8543)
|
|
|
|
|
|
|
| |
Problem: Vim9: profiling does not work with a nested function.
Solution: Also compile a nested function without profiling. (closes #8543)
Handle that compiling may cause the table of compiled functions to
change.
|
|
|
|
|
| |
Problem: Vim9: line number wrong for :execute argument.
Solution: Use the line number of the :execute command itself. (closes #8537)
|
|
|
|
|
| |
Problem: Vim9: profile test fails without profile feature.
Solution: Check the profile feature is present.
|
|
|
|
|
|
| |
Problem: Vim9: A lambda may be compiled with the wrong context if it is
called from a profiled function.
Solution: Compile the lambda with and without profiling. (closes #8543)
|
|
|
|
|
|
| |
Problem: Vim9: no error when a line only has a variable name.
Solution: Give an error when an expression is evaluated without an effect.
(closes #8538)
|
|
|
|
|
|
| |
Problem: Vim9: import test fails.
Solution: Rename directory back to "import", use "p" to avoid an error when
the directory already exists.
|
|
|
|
|
| |
Problem: Vim9: imported uninitialized list does not get type checked.
Solution: Get type from imported variable.
|
|
|
|
|
|
| |
Problem: Vim9: for loop error reports wrong line number.
Solution: Save and restore the line number when evaluating the expression.
(closes #8514)
|
|
|
|
|
| |
Problem: Vim9: no error for white space between option and "=9".
Solution: Check for extraneous white space. (issue #8408)
|
|
|
|
|
|
| |
Problem: Vim9: confusing error when using white space after option, before
one of "!&<".
Solution: Give a specific error. (issue #8408)
|
|
|
|
|
| |
Problem: Vim9: "any" type not handled correctly in for loop.
Solution: Change compile time check into runtime check. (closes #8516)
|
|
|
|
|
|
| |
Problem: Vim9: type not properly checked in for loop.
Solution: Have items() return a list of lists. Add runtime type checks.
(closes #8515)
|
|
|
|
|
| |
Problem: No error when for loop variable shadows script variable.
Solution: Check for the error. (closes #8512)
|
|
|
|
|
| |
Problem: Vim9: confusing error with extra whitespace before colon.
Solution: Check for colon after white space. (closes #8513)
|
|
|
|
|
| |
Problem: Vim9: missing catch/finally not reported at script level.
Solution: Give an error. (closes #8487)
|
|
|
|
|
| |
Problem: Vim9: profile test fails.
Solution: Make throw in :catch jump to :finally.
|
|
|
|
|
| |
Problem: Vim9: an error in a catch block is not reported.
Solution: Put the "in catch" flag in the try stack. (closes #8478)
|
|
|
|
|
| |
Problem: Vim9: using try in catch block causes a hang.
Solution: Save and restore the ec_in_catch flag. (closes #8478)
|
|
|
|
|
|
| |
Problem: Vim9: error when sourcing script twice and reusing a function
name.
Solution: Check if the function is dead. (closes #8463)
|
|
|
|
|
| |
Problem: Vim9: for loop with one list variable does not work.
Solution: Use a separate flag for unpacking a list. (closes #8452)
|