| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Problem: Vim9: error for argument type does not mention the number.
Solution: Pass the argument number to where the error is given.
|
|
|
|
|
|
| |
Problem: Vim9: white space checks are only done for a :def function.
Solution: Also do checks at the script level. Adjust the name of a few
error messages.
|
|
|
|
|
|
| |
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: Error messages are spread out.
Solution: Move more messages into errors.h.
|
|
|
|
|
|
| |
Problem: Error messages are spread out and names can be confusing.
Solution: Start moving error messages to a separate file and use clear
names.
|
|
|
|
|
| |
Problem: Vim9: accidentally using "x" gives a confusing error.
Solution: Disallow using ":t" in Vim9 script. (issue #6399)
|
|
|
|
|
| |
Problem: Test failures with legacy Vim script.
Solution: Actually check for Vim9 script.
|
|
|
|
|
| |
Problem: Vim9: accidentally using "x" causes Vim to exit.
Solution: Disallow using ":x" or "xit" in Vim9 script. (closes #6399)
|
|
|
|
|
| |
Problem: Vim9: crash when using an imported function.
Solution: Add the function type to the imported entry. (closes #6522)
|
|
|
|
|
| |
Problem: Vim9: compiler warning for buffer size.
Solution: Change the offset from 10 to 15. (Dominique Pellé, closes #6518)
|
|
|
|
|
| |
Problem: Vim9: type not checked if declaration also assigns value.
Solution: Check the type. (issue #6507)
|
|
|
|
|
| |
Problem: Vim9: checking for Vim9 syntax is spread out.
Solution: Use in_vim9script().
|
|
|
|
|
| |
Problem: Vim9: memory leak in allocated types.
Solution: Free the type pointers.
|
|
|
|
|
| |
Problem: Warning for using int instead of size_t.
Solution: Change "len" argument to size_t. (Mike Williams)
|
|
|
|
|
| |
Problem: Vim9: double quote can be a string or a comment.
Solution: Only support comments starting with # to avoid confusion.
|
|
|
|
|
| |
Problem: Vim9: no line break allowed in :import command.
Solution: Skip over line breaks.
|
|
|
|
|
|
| |
Problem: Inconsistent naming of get_list_tv() and eval_dict().
Solution: Rename get_list_tv() to eval_list(). Similarly for eval_number(),
eval_string(), eval_lit_string() and a few others.
|
|
|
|
|
|
| |
Problem: Vim9: cannot declare single character script variables.
Solution: Don't see "b:", "s:", etc. as namespace. Fix item size of
sn_var_vals.
|
|
|
|
|
|
| |
Problem: Vim9: some code not tested.
Solution: Add a few more test cases. Reorder checks for clearer error.
Remove unreachable code.
|
|
|
|
|
|
| |
Problem: Vim9: crash when using :import in the Vim command.
Solution: Give an error when using :import outside of a script.
(closes #6271)
|
|
|
|
|
| |
Problem: Vim9: script variable does not accept optional s: prefix.
Solution: Adjust the accepted syntax.
|
|
|
|
|
| |
Problem: Vim9: memory leak when script var has wrong type.
Solution: Free the variable name.
|
|
|
|
|
| |
Problem: Vim9: type is not checked when assigning to a script variable.
Solution: Check the type.
|
|
|
|
|
| |
Problem: Vim9 script variable declarations need a type.
Solution: Make "let var: type" declare a script-local variable.
|
|
|
|
|
| |
Problem: Cannot use :import in legacy Vim script.
Solution: Support :import in any Vim script.
|
|
|
|
|
|
| |
Problem: Vim9: using a discovery phase doesn't work well.
Solution: Remove the discovery phase, instead compile a function only when
it is used. Add :defcompile to compile def functions earlier.
|
|
|
|
|
| |
Problem: using "func!" after vim9script gives confusing error.
Solution: Give E477. (closes #6107)
|
|
|
|
|
|
| |
Problem: Vim9: No error when variable initializer is not a constant.
Solution: Return FAIL when trying to get a variable value. Do not execute a
script when an error is deteted in the first or second phase.
|
|
|
|
|
| |
Problem: Vim9: parsing declarations continues after :finish.
Solution: Bail out when encountering :finish.
|
|
|
|
|
| |
Problem: Vim9: cannot call a function declared later in Vim9 script.
Solution: Make two passes through the script file.
|
|
|
|
|
|
| |
Problem: Vim9: script function can be deleted.
Solution: Disallow deleting script function. Delete functions when sourcing
a script again.
|
|
|
|
|
| |
Problem: Various memory leaks in Vim9 script code.
Solution: Fix the leaks. (Ozaki Kiichi, closes #5814)
|
|
|
|
|
| |
Problem: Vim9: import that redefines local variable does not fail.
Solution: Check for already defined symbols.
|
|
|
|
|
| |
Problem: Vim9: insufficient script tests.
Solution: Add tests. Make import of alphanumeric name work.
|
|
|
|
|
| |
Problem: Vim9: insufficient script tests.
Solution: Add more tests. Make "import * as Name" work.
|
|
|
|
|
| |
Problem: Coverity warning for not restoring character.
Solution: Restore the character also in case of failure.
|
|
|
|
|
|
|
| |
Problem: Warnings from MinGW compiler. (John Marriott) Json test fails when
building without +float feature.
Solution: Init variables. Fix Json parsing. Skip a few tests that require
the +float feature.
|
|
|
|
|
|
|
| |
Problem: Reallocating the list of scripts is inefficient.
Solution: Instead of using a growarray of scriptitem_T, store pointers and
allocate each scriptitem_T separately. Also avoids that the
growarray pointers change when sourcing a new script.
|
|
Problem: Maintaining a Vim9 branch separately is more work.
Solution: Merge the Vim9 script changes.
|