Age | Commit message (Collapse) | Author |
|
Problem: Vim9: wrong syntax of function in Vim9 script.
Solution: Give error for missing space. Implement :echomsg and :echoerr.
(closes #5670)
|
|
Problem: Vim9: confusing error when calling unknown function.
Solution: Give error while compiling.
|
|
Problem: Vim9: no check for space before #comment.
Solution: Add space checks. Fix :throw with double quoted string.
|
|
Problem: Vim9: cannot unlet an environment variable.
Solution: Implement unlet for $VAR.
|
|
Problem: Vim9: :unlet is not compiled.
Solution: Implement :unlet instruction and check for errors.
|
|
Problem: Vim9: cannot read or write w:, t: and b: variables.
Solution: Implement load and store for w:, t: and b: variables.
(closes #5950)
|
|
Problem: Vim9: not all commands using ends_excmd() tested.
Solution: Find # comment after regular commands. Add more tests. Report
error for where it was caused.
|
|
Problem: Vim9: # comment not recognized after :vim9script.
Solution: Check script type. Make comment after ":echo" work. And in
several other places.
|
|
Problem: Vim9: # comment not recognized in :def function.
Solution: Recognize and skip # comment.
|
|
Problem: Heredoc for interfaces does not support "trim".
Solution: Update the script heredoc support to be same as the :let command.
(Yegappan Lakshmanan, closes #5916)
|
|
Problem: Vim9: cannot put comments halfway expressions.
Solution: Support # comments in many places.
|
|
Problem: Vim9: tests contain superfluous line continuation.
Solution: Remove line continuation no longer needed. Skip empty lines.
|
|
Problem: Vim9: cannot split a function line.
Solution: Continue in next line so long as the function isn't done.
|
|
Problem: Vim9: cannot split an expression into multiple lines.
Solution: Continue in next line after an operator.
|
|
Problem: Vim9: cannot split function call in multiple lines.
Solution: Find more arguments in following lines.
|
|
Problem: Clearing a struct is verbose.
Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
|
|
Problem: Vim9: dict code not covered by tests.
Solution: Remove dead code, adjust test case.
|
|
Problem: Vim9: memory leak when finding common type.
Solution: Store allocated memory in type growarray.
|
|
Problem: Vim9: line continuation is not always needed.
Solution: Recognize continuation lines automatically in list and dict.
|
|
Problem: Vim9: some errors not covered by tests.
Solution: Add more tests. Check Funcref argument types.
|
|
Problem: Vim9: not all possible func type errors tested.
Solution: Add more tests.
|
|
Problem: Vim9: varargs implementation is inefficient.
Solution: Create list without moving the arguments.
|
|
Problem: Vim9: function with varargs does not work properly.
Solution: Improve function type spec and add tests. Fix bugs.
|
|
Problem: Vim9: VAR_PARTIAL is not used during compilation.
Solution: Remove VAR_PARTIAL.
|
|
Problem: Vim9: some compilation code not tested.
Solution: Add more test cases.
|
|
Problem: Vim9: function argument with default not checked.
Solution: Check type of argument with default value.
|
|
Problem: Vim9: function arguments insufficiently tested.
Solution: Check types. Add more tests. Fix function with varargs only.
|
|
Problem: Vim9: function types insufficiently tested.
Solution: Add more tests. Fix white space check. Add "test_vim9" target.
|
|
Problem: Loops are repeated.
Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
|
|
Problem: Vim9: return type not properly checked.
Solution: Check type properly, also at runtime.
|
|
Problem: Vim9: cannot separate "func" and "func(): void".
Solution: Use VAR_ANY for "any" and VAR_UNKNOWN for "no type".
|
|
Problem: Some compilers cannot add to "void *".
Solution: Cast to "char *".
|
|
Problem: Reading past allocate memory when using varargs.
Solution: Fix copying function argument types.
|
|
Problem: Vim9: no optional arguments in func type.
Solution: Check for question mark after type. Find function reference
without function().
|
|
Problem: Vim9: func and partial types not done yet
Solution: Fill in details about func declaration, drop a separate partial
declaration.
|
|
Problem: Vim9: leaking scope memory when compilation fails.
Solution: Cleanup the scope list.
|
|
Problem: Vim9: some code is not tested.
Solution: Add tests. Fix uncovered problems.
|
|
Problem: Vim9: some code is not tested.
Solution: Add more tests. Fix uncovered problems.
|
|
Problem: Coverity complains about uninitialized field.
Solution: Initialize the whole typval_T.
|
|
Problem: Vim9: some code not tested.
Solution: Add more tests. Support more const expressions.
|
|
Problem: Vim9: asan error.
Solution: Only get the type when there is one.
|
|
Problem: Vim9: some error messages not tested.
Solution: Add more tests. Fix uncovered bugs.
|
|
Problem: Vim9: some error messages not tested.
Solution: Add more tests. Remove dead code. Fix uncovered bugs.
|
|
Problem: Vim9: memory leaks.
Solution: Free memory in the right place. Add hints for using asan.
|
|
Problem: Vim9: Compiling can break when using a lambda inside :def.
Solution: Do not keep a pointer to the dfunc_T for longer time.
|
|
Problem: Vim9: compiling not sufficiently tested.
Solution: Add more tests. Fix bug with PCALL.
|
|
Problem: Vim9: some code and error messages not tested.
Solution: Add more tests.
|
|
Problem: Vim9 script test fails.
Solution: Stricter condition for adding new local variable.
|
|
Problem: Vim9: "let x = x + 1" does not give an error.
Solution: Hide the variable when compiling the expression.
|
|
Problem: Vim9: some code is not tested.
Solution: Add more tests.
|