| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
Problem: Vim9: error for #{{ is not desired.
Solution: Adjust the checks. (closes #7990)
|
|
|
|
|
| |
Problem: Vim9: Using #{ for a dictionary gives strange errors.
Solution: Give an error when using #{ for a comment after a command.
|
|
|
|
|
| |
Problem: Vim9: "import * as" does not work at script level.
Solution: Implement using an imported namespace.
|
|
|
|
|
|
| |
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: cannot use a range with :unlet.
Solution: Implement ISN_UNLETRANGE.
|
|
|
|
|
|
| |
Problem: Vim9: cannot use Vim9 script syntax in some places.
Solution: Add the :vim9cmd command modifier. Incompatible: Makes ":vim9"
mean ":vim9cmd" instead of ":vim9script".
|
|
|
|
|
| |
Problem: Not always clear where an error is reported.
Solution: Add the where_T structure and pass it around. (closes #7796)
|
|
|
|
|
|
| |
Problem: No error when using more than one character for a register name.
Solution: In Vim9 script check for a single character string. (closes #7814)
Fix that VAR_BOOL and VAR_SPECIAL are not considered equal.
|
|
|
|
|
| |
Problem: json_encode() gives generic argument error.
Solution: Mention the type that can't be encoded. (issue #7802)
|
|
|
|
|
| |
Problem: Vim9: some errors for white space do not show context.
Solution: Include the text at the error.
|
|
|
|
|
| |
Problem: Build error.
Solution: Add new error message.
|
|
|
|
|
| |
Problem: Vim9: some errors for white space do not show context.
Solution: Include the text at the error.
|
|
|
|
|
|
| |
Problem: Using freed memory when using an autocommand to split a window
while a buffer is being closed.
Solution: Disallow splitting when the buffer has b_locked_split set.
|
|
|
|
|
| |
Problem: Vim9: flatten() always changes the list type.
Solution: Disallow using flatten() and add flattennew().
|
|
|
|
|
| |
Problem: Vim9: no proper error for lambda missing return type.
Solution: Check for this error. (closes #7758)
|
|
|
|
|
| |
Problem: Missing error message.
Solution: Add the error message.
|
|
|
|
|
| |
Problem: Too many problems with using all autocommand events.
Solution: Disallow defining an autocommand for all events.
|
|
|
|
|
| |
Problem: Vim9: no error message for dividing by zero.
Solution: Give an error message. (issue #7704)
|
|
|
|
|
| |
Problem: Test failures on some less often used systems.
Solution: Adjust printf formats and types. (James McCoy, closes #7691)
|
|
|
|
|
| |
Problem: Vim9: no error for comparing bool with string.
Solution: Check for wrong types when comparing. (closes #7639)
|
|
|
|
|
| |
Problem: Vim9: invalid memory access making error message flaky.
Solution: Do not check cmd_argt for CMD_USER. (issue #7467)
|
|
|
|
|
| |
Problem: Vim9: it can be hard to see where white space is missing.
Solution: Mention the text where the error was seen. (closes #7580)
|
|
|
|
|
| |
Problem: Vim9: no error for mismatched :endfunc or :enddef.
Solution: Check for the mismatch. (issue #7582)
|
|
|
|
|
| |
Problem: Vim9: cannot load a Vim9 script without the +eval feature.
Solution: Support Vim9 script syntax without the +eval feature.
|
|
|
|
|
| |
Problem: Vim9: crash if script reloaded with different variable type.
Solution: Check the type when accessing the variable.
|
|
|
|
|
| |
Problem: Vim9: range with missing colon can be hard to spot.
Solution: Include the start of the range in the error. (closes #7543)
|
|
|
|
|
|
| |
Problem: Vim9: after reloading a script variable index may be invalid.
Solution: When the sequence number doesn't match give an error for using a
script-local variable from a compiled function. (closes #7547)
|
|
|
|
|
| |
Problem: Vim9: crash when indexing a dict with a number.
Solution: Add ISN_STOREINDEX. (closes #7513)
|
|
|
|
|
| |
Problem: Vim9: get internal error when assigning to undefined variable.
Solution: Add error message. (closes #7475)
|
|
|
|
|
|
| |
Problem: Vim9: "exit_cb" causes Vim to exit.
Solution: Require white space after a command in Vim9 script. (closes #7467)
Also fix that Vim9 style heredoc was not always recognized.
|
|
|
|
|
| |
Problem: Vim9: :echo and :execute give error for empty argument.
Solution: Ignore an empty argument. (closes #7468)
|
|
|
|
|
| |
Problem: Vim9: checking for a non-empty string is too strict.
Solution: Check for any string. (closes #7447)
|
|
|
|
|
| |
Problem: Vim9: only one level of indexing supported.
Solution: Handle more than one index in an assignment.
|
|
|
|
|
| |
Problem: Vim9: list unpack in for statement not compiled yet.
Solution: Compile list unpack. (closes #7345)
|
|
|
|
|
| |
Problem: Vim9: literal dict #{} is not like any other language.
Solution: Support the JavaScript syntax.
|
|
|
|
|
| |
Problem: Vim9: confusing error message when using bool wrongly.
Solution: Mention "Bool" instead of "Special". (closes #7323)
|
|
|
|
|
|
| |
Problem: Making a mapping work in all modes is complicated.
Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes #7282,
closes 4784, based on patch by Bjorn Linse)
|
|
|
|
|
|
| |
Problem: Vim9: error for using a string in a condition is confusing.
Solution: Give a more specific error. Also adjust the compile time type
checking for || and &&.
|
|
|
|
|
|
| |
Problem: Vim9: using extend() on null dict is silently ignored.
Solution: Give an error message. Initialize a dict variable with an empty
dictionary. (closes #7251)
|
|
|
|
|
|
| |
Problem: Crash when passing NULL function to reduce().
Solution: Check for NULL pointer and give an error. (Dominique Pellé,
closes #7243)
|
|
|
|
|
| |
Problem: Vim9: E1100 mentions :let.
Solution: Mention "var". (closes #7207)
|
|
|
|
|
| |
Problem: Vim9: argument to add() not checked for blob.
Solution: Add the BLOBAPPEND instruction.
|
|
|
|
|
| |
Problem: Vim9: add() does not check type of argument.
Solution: Inline the add() call. (closes #7160)
|
|
|
|
|
| |
Problem: Vim9: get error message when nothing is wrong.
Solution: Check called_emsg instead of did_emsg. (closes #7143)
|
|
|
|
|
|
| |
Problem: Vim9: crash when throwing exception for NULL string. (Dhiraj
Mishra)
Solution: Handle NULL string like empty string. (closes #7139)
|
|
|
|
|
| |
Problem: Vim9: cannot use a {} block at script level.
Solution: Recognize a {} block.
|
|
|
|
|
| |
Problem: Vim9: crash with invalid list constant. (Dhiraj Mishra)
Solution: Return FAIL when compiling the list fails. (closes #7066)
|
|
|
|
|
| |
Problem: Vim9: :let will soon be disallowed.
Solution: Add v:disallow_let temporarily. Fix tests.
|
|
|
|
|
|
| |
Problem: Vim9: using ":const!" is weird.
Solution: Use "var" - "final" - "const" like Dart. "let" still works for
now.
|
|
|
|
|
| |
Problem: Vim9: no error if comma is missing in between arguments.
Solution: Give an error message.
|