Bram Moolenaar
cb4e80fab9
patch 8.2.2597: Vim9: "import * as" does not work at script level
...
Problem: Vim9: "import * as" does not work at script level.
Solution: Implement using an imported namespace.
2021-03-13 20:57:19 +01:00
Bram Moolenaar
a974953443
patch 8.2.2573: Vim9: using inalid pointer for error message
...
Problem: Vim9: using inalid pointer for error message.
Solution: Use the right pointer. (closes #7921 )
2021-03-06 18:18:19 +01:00
Bram Moolenaar
f76ec1eeb5
patch 8.2.2565: Vim9: "..=" not always recognized
...
Problem: Vim9: "..=" not always recognized.
Solution: Do not consider "..=" to be string concatenation. (closes #7905 )
2021-03-03 17:58:16 +01:00
Bram Moolenaar
5b5ae29bd3
patch 8.2.2533: Vim9: cannot use a range with :unlet
...
Problem: Vim9: cannot use a range with :unlet.
Solution: Implement ISN_UNLETRANGE.
2021-02-20 17:04:02 +01:00
Bram Moolenaar
c7dac8534e
patch 8.2.2528: Vim9: crash when compiling lambda fails
...
Problem: Vim9: crash when compiling lambda fails.
Solution: Bail out after compilation fails. (closes #7862 )
2021-02-17 18:49:11 +01:00
Bram Moolenaar
064095012c
patch 8.2.2527: Vim9: lambda return type is not determined at script level
...
Problem: Vim9: lambda return type is not determined at script level.
Solution: Compile the lambda to get the return type. (closes #7843 )
2021-02-17 17:00:27 +01:00
Bram Moolenaar
f785aa1354
patch 8.2.2501: not always clear where an error is reported
...
Problem: Not always clear where an error is reported.
Solution: Add the where_T structure and pass it around. (closes #7796 )
2021-02-11 21:19:34 +01:00
Bram Moolenaar
8bead9a058
patch 8.2.2459: Coverity reports dead code
...
Problem: Coverity reports dead code.
Solution: Remove the dead code.
2021-02-03 19:51:18 +01:00
Bram Moolenaar
2e5910bfbb
patch 8.2.2455: Vim9: key type for literal dict and indexing is inconsistent
...
Problem: Vim9: key type that can be used for literal dict and indexing is
inconsistent.
Solution: Allow using number and bool as key for a literal dict. (#7771 )
2021-02-03 17:41:24 +01:00
Bram Moolenaar
7cebe8ba7d
patch 8.2.2396: Vim9: no white space allowed before "->"
...
Problem: Vim9: no white space allowed before "->".
Solution: Allow for white space. (closes #7725 )
2021-01-23 14:22:16 +01:00
Bram Moolenaar
c5f59fab23
patch 8.2.2381: Vim9: divide by zero does not abort expression execution
...
Problem: Vim9: divide by zero does not abort expression execution.
Solution: Use a "failed" flag. (issue #7704 )
2021-01-21 12:34:14 +01:00
Bram Moolenaar
99880f96cf
patch 8.2.2378: Vim9: no error message for dividing by zero
...
Problem: Vim9: no error message for dividing by zero.
Solution: Give an error message. (issue #7704 )
2021-01-20 21:23:14 +01:00
Bram Moolenaar
883cf97f10
patch 8.2.2356: Vim9: ":put =expr" does not handle a list properly
...
Problem: Vim9: ":put =expr" does not handle a list properly.
Solution: Use the same logic as eval_to_string_eap(). (closes #7684 )
2021-01-15 18:04:43 +01:00
Bram Moolenaar
6601b62943
patch 8.2.2344: using inclusive index for slice is not always desired
...
Problem: Using inclusive index for slice is not always desired.
Solution: Add the slice() method, which has an exclusive index. (closes
#7408 )
2021-01-13 21:47:15 +01:00
Bram Moolenaar
9145846b6a
patch 8.2.2342: "char" functions may return wrong column in Insert mode
...
Problem: "char" functions return the wront column in Insert mode when the
cursor is beyond the end of the line.
Solution: Compute the column correctly. (Yegappan Lakshmanan, closes #7669 )
2021-01-13 20:08:38 +01:00
Bram Moolenaar
6f02b00bb0
patch 8.2.2324: not easy to get mark en cursor posotion by character count
...
Problem: Not easy to get mark en cursor posotion by character count.
Solution: Add functions that use character index. (Yegappan Lakshmanan,
closes #7648 )
2021-01-10 20:22:54 +01:00
Bram Moolenaar
657137ca48
patch 8.2.2319: "exptype_T" can be read as "expected type"
...
Problem: "exptype_T" can be read as "expected type".
Solution: Rename to "exprtype_T", expression type.
2021-01-09 15:45:23 +01:00
Bram Moolenaar
e7525c5520
patch 8.2.2318: Vim9: string and list index work differently
...
Problem: Vim9: string and list index work differently.
Solution: Make string index work like list index. (closes #7643 )
2021-01-09 13:20:37 +01:00
Bram Moolenaar
32b3f82010
patch 8.2.2306: Vim9: when using function reference type is not checked
...
Problem: Vim9: when using function reference type is not checked.
Solution: When using a function reference lookup the type and check the
argument types. (issue #7629 )
2021-01-06 21:59:39 +01:00
Bram Moolenaar
b23279d7a2
patch 8.2.2305: Vim9: "++var" and "--var" are silently accepted
...
Problem: Vim9: "++var" and "--var" are silently accepted.
Solution: Give an error message.
2021-01-05 22:08:20 +01:00
Bram Moolenaar
5f63938447
patch 8.2.2292: Vim: expr test fails
...
Problem: Vim: expr test fails.
Solution: Add missing part of "null" support.
2021-01-03 22:05:19 +01:00
Bram Moolenaar
2ef951dd31
patch 8.2.2290: Vim9: unlet of global variable cannot be compiled
...
Problem: Vim9: unlet of global variable cannot be compiled.
Solution: Skip over variables that might be defined later. Give an error if
a subscript is found. (closes #7585 )
2021-01-03 20:55:26 +01:00
Bram Moolenaar
e5a2dc87fd
patch 8.2.2289: Vim9: 'cpo' can become empty
...
Problem: Vim9: 'cpo' can become empty.
Solution: Use empty_option instead of an empty string. Update quickfix
buffer after restoring 'cpo'. (closes #7608 )
2021-01-03 19:52:05 +01:00
Bram Moolenaar
3862ea3f62
patch 8.2.2268: Vim9: list unpack seen as declaration
...
Problem: Vim9: list unpack seen as declaration.
Solution: Check for "var". (closes #7594 )
2021-01-01 21:05:55 +01:00
Bram Moolenaar
e7a73e0762
patch 8.2.2266: Vim9: it can be hard to see where white space is missing
...
Problem: Vim9: it can be hard to see where white space is missing.
Solution: Mention the text where the error was seen. (closes #7580 )
2021-01-01 19:17:55 +01:00
Bram Moolenaar
2949cfdbe4
patch 8.2.2257: Vim9: using -> for lambda is ambiguous
...
Problem: Vim9: using -> for lambda is ambiguous.
Solution: Stop supporting ->, must use =>.
2020-12-31 21:28:47 +01:00
Bram Moolenaar
a04d447d3a
patch 8.2.2251: test failures in legacy script
...
Problem: Test failures in legacy script.
Solution: Check for Vim9 script.
2020-12-30 21:16:37 +01:00
Bram Moolenaar
de4f95b041
patch 8.2.2250: Vim9: sublist is ambiguous
...
Problem: Vim9: sublist is ambiguous.
Solution: Require white space around the colon. (closes #7409 )
2020-12-30 20:39:21 +01:00
Bram Moolenaar
c754b4cc98
patch 8.2.2212: Vim9: lambda with => does not work at the script level
...
Problem: Vim9: lambda with => does not work at the script level.
Solution: Make it work.
2020-12-25 15:24:23 +01:00
Bram Moolenaar
9e68c32563
patch 8.2.2209: Vim9: return type of => lambda not parsed
...
Problem: Vim9: return type of => lambda not parsed.
Solution: Parse and use the return type.
2020-12-25 12:38:04 +01:00
Bram Moolenaar
4941b5effd
patch 8.2.2206: :exe command line completion only works for first argument
...
Problem: :exe command line completion only works for first argument.
Solution: Skip over text if more is following. (closes #7546 )
2020-12-24 17:15:53 +01:00
Bram Moolenaar
1dcf55d4f1
patch 8.2.2195: failing tests for :const
...
Problem: Failing tests for :const.
Solution: Add missing check for ASSIGN_FINAL.
2020-12-22 22:07:30 +01:00
Bram Moolenaar
5b3d1bb0f5
patch 8.2.2186: Vim9: error when using 'opfunc'
...
Problem: Vim9: error when using 'opfunc'.
Solution: Do not expect a return value from 'opfunc'. (closes #7510 )
2020-12-22 12:20:08 +01:00
Bram Moolenaar
8f22f5c3aa
patch 8.2.2165: Vim9: assignment to dict member does not work
...
Problem: Vim9: assignment to dict member does not work.
Solution: Fix recognizing dict member. (closes #7484 )
2020-12-19 22:10:13 +01:00
Bram Moolenaar
03290b8444
patch 8.2.2162: Vim9: Cannot load or store autoload variables
...
Problem: Vim9: Cannot load or store autoload variables.
Solution: Add ISN_LOADAUTO and ISN_STOREAUTO. (closes #7485 )
2020-12-19 16:30:44 +01:00
Bram Moolenaar
8e7d6223f6
patch 8.2.2160: various typos
...
Problem: Various typos.
Solution: Fix spelling mistakes. (closes #7494 )
2020-12-18 19:49:56 +01:00
Bram Moolenaar
8143a53c53
patch 8.2.2141: a user command with try/catch may not catch an expression error
...
Problem: A user command with try/catch may not catch an expression error.
Solution: When an expression fails check for following "|". (closes #7469 )
2020-12-13 20:26:29 +01:00
Bram Moolenaar
d0fe620cbb
patch 8.2.2094: when an expression fails getting next command may be wrong
...
Problem: When an expression fails getting the next command may be wrong.
Solution: Do not check for a next command after :eval fails. (closes #7415 )
2020-12-05 17:11:12 +01:00
Bram Moolenaar
e0de171ecd
patch 8.2.2082: Vim9: can still use the depricated #{} dict syntax
...
Problem: Vim9: can still use the depricated #{} dict syntax.
Solution: Remove support for #{} in Vim9 script. (closes #7406 , closes #7405 )
2020-12-02 17:36:54 +01:00
Bram Moolenaar
ce2c5444e2
patch 8.2.2066: Vim9: assignment with += doesn't work
...
Problem: Vim9: assignment with += doesn't work.
Solution: Do not see the "+" as an addition operator.
2020-11-28 21:21:17 +01:00
Bram Moolenaar
c2ca935d26
patch 8.2.2053: Vim9: lamba doesn't accept argument types
...
Problem: Vim9: lamba doesn't accept argument types.
Solution: Optionally accept argument types at the script level.
2020-11-25 21:30:11 +01:00
Bram Moolenaar
792f786aad
patch 8.2.2034: Vim9: list unpack in for statement not compiled yet
...
Problem: Vim9: list unpack in for statement not compiled yet.
Solution: Compile list unpack. (closes #7345 )
2020-11-23 08:31:18 +01:00
Bram Moolenaar
896ad2c33e
patch 8.2.2028: Coverity warns for using an uninitialized variable
...
Problem: Coverity warns for using an uninitialized variable.
Solution: Initialize to NULL.
2020-11-21 14:03:43 +01:00
Bram Moolenaar
659bb2275e
patch 8.2.1980: Vim9: some tests are not done at the script level
...
Problem: Vim9: some tests are not done at the script level.
Solution: Use CheckDefAndScriptSuccess() in more places. Fix uncovered
problems.
2020-11-12 20:16:39 +01:00
Bram Moolenaar
b4d16cb11d
patch 8.2.1956: Vim9: cannot specify argument types for lambda
...
Problem: Vim9: cannot specify argument types for lambda.
Solution: Allow adding argument types. Check arguments when calling a
function reference.
2020-11-05 18:45:46 +01:00
Bram Moolenaar
b4bcea474d
patch 8.2.1914: Vim9: cannot put line break in expression for '=' register
...
Problem: Vim9: cannot put line break in expression for '=' register.
Solution: Pass fgetline to set_expr_line(). (closes #7209 )
2020-10-28 13:53:50 +01:00
Bram Moolenaar
683581eb49
patch 8.2.1891: Vim9: skipping over expression doesn't handle line breaks
...
Problem: Vim9: skipping over expression doesn't handle line breaks.
Solution: Pass evalarg to skip_expr(). (closes #7157 )
2020-10-22 21:22:58 +02:00
Bram Moolenaar
081db1a66d
patch 8.2.1890: Vim9: strange error for subtracting from a list
...
Problem: Vim9: strange error for subtracting from a list.
Solution: Check getting a number, not a string. (closes #7167 )
2020-10-22 20:09:43 +02:00
Bram Moolenaar
27491cd3ef
patch 8.2.1851: Vim9: "!" followed by space incorrectly used
...
Problem: Vim9: "!" followed by space incorrectly used.
Solution: Skip over trailing spaces. (closes #7131 )
2020-10-15 21:54:56 +02:00
Bram Moolenaar
93be1644db
patch 8.2.1838: Vim9: cannot insert a comment line in an expression
...
Problem: Vim9: cannot insert a comment line in an expression.
Solution: Skip comment lines at the script level. (closes #7111 )
2020-10-11 21:34:41 +02:00