| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Problem: Vim9: some assignment tests in the wrong file.
Solution: Move assignment tests to test_vim9_assign.
|
|
|
|
|
| |
Problem: Vim9: Some tests are still using :let.
Solution: Change the last few declarations to use :var.
|
|
|
|
|
| |
Problem: Vim9: :let will soon be disallowed.
Solution: Add v:disallow_let temporarily. Fix tests.
|
|
|
|
|
| |
Problem: Vim9: Cannot use "fina" for "finally". (Naruhiko Nishino)
Solution: Specifically check for "fina". (closes #7020)
|
|
|
|
|
|
| |
Problem: Vim9: using ":const!" is weird.
Solution: Use "var" - "final" - "const" like Dart. "let" still works for
now.
|
|
|
|
|
| |
Problem: Test still fails without the terminal feature.
Solution: Put check for terminal feature in separate function.
|
|
|
|
|
| |
Problem: Test fails without the terminal feature.
Solution: Skip test if the terminal feature is not available.
|
|
|
|
|
|
| |
Problem: Vim9: crash when compiling a manually defined function. (Antony
Scriven)
Solution: Check that the script ID is positive. (closes #7012)
|
|
|
|
|
| |
Problem: Vim9: assignment tests spread out.
Solution: Create new test file for assignment tests.
|
|
|
|
|
|
| |
Problem: Vim9: memory leak with heredoc that isn't executed. (Dominique
Pellé)
Solution: Don't clear the list items. (closes #6991)
|
|
|
|
|
| |
Problem: Vim9: crash in for loop when autoload script has an error.
Solution: Reset suppress_errthrow. Check for NULL list. (closes #6967)
|
|
|
|
|
| |
Problem: Vim9: try/catch causes wrong value to be returned.
Solution: Reset tcd_return. (closes #6964)
|
|
|
|
|
| |
Problem: Inconsistent capitalization of error messages.
Solution: Always start with a capital.
|
|
|
|
|
|
| |
Problem: Vim9: list<any> is not accepted where list<number> is expected.
Solution: Add functions to allocate and free a type_T, use it in
ISN_CHECKTYPE. (closes #6959)
|
|
|
|
|
| |
Problem: Vim9: "const!" not sufficiently tested.
Solution: Add a few more test cases. Fix type checking.
|
|
|
|
|
| |
Problem: Vim9: cannot declare a constant value.
Solution: Introduce ":const!".
|
|
|
|
|
|
| |
Problem: Vim9: const works in an unexpected way.
Solution: ":const" only disallows changing the variable, not the value.
Make "list[0] = 9" work at the script level.
|
|
|
|
|
| |
Problem: Vim9: unnessary :call commands in tests.
Solution: Remove the commands. (issue #6936)
|
|
|
|
|
| |
Problem: Vim9: internal error when using variable that was not set.
Solution: Give a meaningful error. (closes #6937)
|
|
|
|
|
|
| |
Problem: Vim9: result of && and || expression cannot be assigned to a bool
at the script level.
Solution: Add the VAR_BOOL_OK flag. Convert to bool when needed.
|
|
|
|
|
|
| |
Problem: Vim9: result of expression with && and || cannot be assigned to a
bool variable.
Solution: Add the TTFLAG_BOOL_OK flag and convert the value if needed.
|
|
|
|
|
|
| |
Problem: Vim9: cannot assign 1 and 0 to bool at script level.
Solution: Add the TTFLAG_BOOL_OK flag to the type. Fix name of test
function.
|
|
|
|
|
| |
Problem: Vim9: cannot use 0 or 1 where a bool is expected.
Solution: Allow using 0 and 1 for a bool type. (closes #6903)
|
|
|
|
|
|
| |
Problem: Not checking the context of test_fails().
Solution: Add the line number and context arguments. Give error if
assert_fails() argument types are wrong.
|
|
|
|
|
| |
Problem: Vim9: using :call where it is not needed.
Solution: Remove :call. (closes #6892)
|
|
|
|
|
| |
Problem: Tests do not check the error number properly.0
Solution: Add a colon after the error number. (closes #6869)
|
|
|
|
|
| |
Problem: Vim9: test with invalid SID is skipped in the GUI.
Solution: Read the CTRL-C that feedkeys() put in typeahead.
|
|
|
|
|
| |
Problem: Vim9: test with invalid SID does not work in the GUI.
Solution: Skip the test in the GUI.
|
|
|
|
|
| |
Problem: Vim9: cannot find function reference for s:Func.
Solution: Recognize <SNR> prefix. (closes #6805)
|
|
|
|
|
| |
Problem: Using invalid script ID causes a crash.
Solution: Check the script ID to be valid. (closes #6804)
|
|
|
|
|
| |
Problem: Vim9: :endif not found after "if false".
Solution: When skipping still check for a following command. (closes #6797)
|
|
|
|
|
|
| |
Problem: Vim9: cannot use a function name as a function reference at script
level.
Solution: Check if a name is a function name. (closes #6789)
|
|
|
|
|
| |
Problem: Vim9: Ex command default range is not set.
Solution: When range is not given use default. (closes #6779)
|
|
|
|
|
| |
Problem: Vim9: cannot assign to local option.
Solution: Skip over "&l:" and "&g:". (closes #6749)
|
|
|
|
|
| |
Problem: Vim9: error for :exe has wrong line number.
Solution: Set line number before calling do_cmdline_cmd(). (closes #6774)
|
|
|
|
|
| |
Problem: Vim9: can create s:var in legacy script but cannot unlet.
Solution: Allow :unlet for legacy script var.
|
|
|
|
|
|
| |
Problem: Vim9: error for an autocmd defined in a :def function in legacy
Vim script.
Solution: Don't check the variable type. (closes #6758)
|
|
|
|
|
| |
Problem: Vim9: can use += with a :let command at script level.
Solution: Give an error.
|
|
|
|
|
| |
Problem: Vim9: error when using address without a command.
Solution: Execute the range itself. (closes #6747)
|
|
|
|
|
|
| |
Problem: Vim9: crash when compiling heredoc lines start with comment.
Solution: Skip over NULL pointers. Do not remove comment and empty lines
when fetching function lines. (closes #6743)
|
|
|
|
|
| |
Problem: Vim9: using /= with float and number doesn't work.
Solution: Better support assignment with operator. (closes #6742)
|
|
|
|
|
| |
Problem: Vim9: cannot assign string to string option.
Solution: Change checks for option value. (closes #6720)
|
|
|
|
|
| |
Problem: Vim9: :echomsg doesn't like a dict argument.
Solution: Convert arguments like in legacy script. (closes #6717)
|
|
|
|
|
| |
Problem: Vim9: cannot index or slice a variable with type "any".
Solution: Add runtime index and slice.
|
|
|
|
|
|
| |
Problem: Vim9: subscript not handled properly.
Solution: Adjust error message. Remove dead code. Disallow string to
number conversion in scripts.
|
|
|
|
|
| |
Problem: Error messages are spread out.
Solution: Move more messages into errors.h.
|
|
|
|
|
|
| |
Problem: Vim9: declaring ascript variable at the script level does not
infer the type.
Solution: Get the type from the value. (closes #6716)
|
|
|
|
|
| |
Problem: Vim9: no check that script-local items don't become global.
Solution: Add a test.
|
|
|
|
|
|
|
| |
Problem: Vim9: function expanded name is cleared when sourcing a script
again.
Solution: Only clear the expanded name when deleting the function.
(closes #6707)
|
|
|
|
|
| |
Problem: Vim9: 'statusline' is evaluated using Vim9 script syntax.
Solution: Always use legacy script syntax.
|