Bram Moolenaar
fb9d5c51c8
patch 8.2.1127: Vim9: getting a dict member may not work
...
Problem: Vim9: getting a dict member may not work.
Solution: Clear the dict only after copying the item. (closes #6390 )
2020-07-04 19:19:43 +02:00
Bram Moolenaar
442af2f89e
patch 8.2.1122: Vim9: line continuation in dict member not recognized
...
Problem: Vim9: line continuation in dict member not recognized.
Solution: Check for line continuation.
2020-07-03 21:09:52 +02:00
Bram Moolenaar
5f195938d4
patch 8.2.1112: Vim9: no line continuation allowed in method call
...
Problem: Vim9: no line continuation allowed in method call.
Solution: Handle line continuation in expression before method call.
2020-07-01 20:07:14 +02:00
Bram Moolenaar
e6b5324e3a
patch 8.2.1110: Vim9: line continuation does not work in function arguments
...
Problem: Vim9: line continuation does not work in function arguments.
Solution: Pass "evalarg" to get_func_tv(). Fix seeing double quoted string
as comment.
2020-07-01 17:28:33 +02:00
Bram Moolenaar
9215f01218
patch 8.2.1074: Vim9: no line break allowed after some operators
...
Problem: Vim9: no line break allowed after some operators.
Solution: Skip a line break after the operator. Add
eval_may_get_next_line() to simplify checking for a line break.
2020-06-27 21:18:00 +02:00
Bram Moolenaar
7a4981b936
patch 8.2.1073: Vim9: no line break allowed in () expression
...
Problem: Vim9: no line break allowed in () expression.
Solution: Skip a line break.
2020-06-27 20:46:29 +02:00
Bram Moolenaar
e40fbc2ca9
patch 8.2.1071: Vim9: no line break allowed inside a lambda
...
Problem: Vim9: no line break allowed inside a lambda.
Solution: Handle line break inside a lambda in Vim9 script.
2020-06-27 18:06:45 +02:00
Bram Moolenaar
8ea9390b78
patch 8.2.1068: Vim9: no line break allowed inside a dict
...
Problem: Vim9: no line break allowed inside a dict.
Solution: Handle line break inside a dict in Vim9 script.
2020-06-27 14:11:53 +02:00
Bram Moolenaar
0b1cd52ff6
patch 8.2.1067: expression "!expr->func()" does not work
...
Problem: Expression "!expr->func()" does not work.
Solution: Apply plus and minus earlier. (closes #6348 )
2020-06-27 13:11:50 +02:00
Bram Moolenaar
7147820cb9
patch 8.2.1065: Vim9: no line break allowed inside a list
...
Problem: Vim9: no line break allowed inside a list.
Solution: Handle line break inside a list in Vim9 script.
2020-06-26 22:46:27 +02:00
Bram Moolenaar
e6536aa766
patch 8.2.1064: Vim9: no line break allowed before comperators
...
Problem: Vim9: no line break allowed before comperators.
Solution: Check for comperator after line break.
2020-06-26 22:00:38 +02:00
Bram Moolenaar
be7ee48876
patch 8.2.1063: Vim9: no line break allowed before || or &&
...
Problem: Vim9: no line break allowed before || or &&.
Solution: Check for operator after line break.
2020-06-26 21:38:51 +02:00
Bram Moolenaar
793648fb56
patch 8.2.1062: Vim9: no line break allowed inside "cond ? val1 : val2"
...
Problem: Vim9: no line break allowed inside "cond ? val1 : val2".
Solution: Check for operator after line break.
2020-06-26 21:28:25 +02:00
Bram Moolenaar
5409f5d8c9
patch 8.2.1047: Vim9: script cannot use line continuation like :def function
...
Problem: Vim9: script cannot use line continuation like in a :def function.
Solution: Pass the getline function pointer to the eval() functions. Use it
for addition and multiplication operators.
2020-06-24 18:37:35 +02:00
Bram Moolenaar
67fbdfefd2
patch 8.2.1045: Vim9: line break before operator does not work
...
Problem: Vim9: line break before operator does not work.
Solution: Peek the next line for an operator.
2020-06-23 22:26:05 +02:00
Bram Moolenaar
df069eec3b
patch 8.2.1042: Vim9: cannot put an operator on the next line
...
Problem: Vim9: cannot put an operator on the next line.
Solution: Require a colon before a range to see if that causes problems.
2020-06-22 23:02:51 +02:00
Bram Moolenaar
23c5527373
patch 8.2.1029: Vim9: cannot chain function calls with -> at line start
...
Problem: Vim9: cannot chain function calls with -> at line start.
Solution: Peek ahead for a following line starting with "->". (closes #6306 )
2020-06-21 16:58:13 +02:00
Bram Moolenaar
e55b1c098d
patch 8.2.1028: Vim9: no error for declaring buffer, window, etc. variable
...
Problem: Vim9: no error for declaring buffer, window, etc. variable.
Solution: Give an error. Unify the error messages.
2020-06-21 15:52:59 +02:00
Bram Moolenaar
a3b7fdc1bb
patch 8.2.1026: Vim9: cannot break the line after "->"
...
Problem: Vim9: cannot break the line after "->".
Solution: Check for a continuation line after "->", "[" and ".". Ignore
trailing white space.
2020-06-21 14:12:17 +02:00
Bram Moolenaar
c785b9a7f4
patch 8.2.1011: Vim9: some code not tested
...
Problem: Vim9: some code not tested.
Solution: Add a few more test cases. Reorder checks for clearer error.
Remove unreachable code.
2020-06-19 18:34:15 +02:00
Bram Moolenaar
66b3101672
patch 8.2.0789: Vim9: expression testing lost coverage using constants
...
Problem: Vim9: expression testing lost coverage using constants.
Solution: Use a few variables instead of constants.
2020-05-18 13:38:02 +02:00
Bram Moolenaar
4aeeb63938
patch 8.2.0761: Vim9: instructions not tested
...
Problem: Vim9: instructions not tested
Solution: Use a variable instead of a constant.
2020-05-15 22:01:57 +02:00
Bram Moolenaar
4dac32caf3
patch 8.2.0760: Vim9: dict member errors not tested
...
Problem: Vim9: dict member errors not tested.
Solution: Delete unreachable error. Add tests.
2020-05-15 21:44:19 +02:00
Bram Moolenaar
1cc2a94f80
patch 8.2.0730: Vim9: Assignment to dict member does not work
...
Problem: Vim9: Assignment to dict member does not work.
Solution: Parse dict assignment. Implement getting dict member.
2020-05-10 19:10:31 +02:00
Bram Moolenaar
a5565e4189
patch 8.2.0719: Vim9: more expressions can be evaluated at compile time
...
Problem: Vim9: more expressions can be evaluated at compile time
Solution: Recognize has('name').
2020-05-09 15:44:01 +02:00
Bram Moolenaar
f0eefce93b
patch 8.2.0714: Vim9: handling constant expression does not scale
...
Problem: Vim9: handling constant expression does not scale.
Solution: Use another solution, passint typval_T.
2020-05-07 22:19:01 +02:00
Bram Moolenaar
61a8981699
patch 8.2.0708: Vim9: constant expressions are not simplified
...
Problem: Vim9: constant expressions are not simplified.
Solution: Simplify string concatenation.
2020-05-07 16:58:17 +02:00
Bram Moolenaar
015f4267f4
patch 8.2.0699: Vim9: not all errors tested
...
Problem: Vim9: not all errors tested.
Solution: Add test for deleted function. Bail out on first error.
2020-05-05 21:25:22 +02:00
Bram Moolenaar
939b5db480
patch 8.2.0659: Vim9: no test for equal func type
...
Problem: Vim9: no test for equal func type.
Solution: Add a test. Improve type check.
2020-04-28 22:49:08 +02:00
Bram Moolenaar
a0a9f43ab2
patch 8.2.0657: Vim9: no check if called variable is a FuncRef
...
Problem: Vim9: no check if called variable is a FuncRef.
Solution: Add a type check.
2020-04-28 21:29:34 +02:00
Bram Moolenaar
4c17ad94ec
patch 8.2.0650: Vim9: script function can be deleted
...
Problem: Vim9: script function can be deleted.
Solution: Disallow deleting script function. Delete functions when sourcing
a script again.
2020-04-27 22:47:51 +02:00
Bram Moolenaar
cfe435d7fe
patch 8.2.0640: Vim9: expanding does not work
...
Problem: Vim9: expanding does not work.
Solution: Find wildcards in not compiled commands. Reorganize test files.
2020-04-25 20:02:55 +02:00
Bram Moolenaar
d3aac2917d
patch 8.2.0600: Vim9: cannot read or write w:, t: and b: variables
...
Problem: Vim9: cannot read or write w:, t: and b: variables.
Solution: Implement load and store for w:, t: and b: variables.
(closes #5950 )
2020-04-19 14:32:17 +02:00
Bram Moolenaar
6e949784be
patch 8.2.0570: Vim9: no error when omitting type from argument
...
Problem: Vim9: no error when omitting type from argument.
Solution: Enforce specifying argument types.
2020-04-13 17:21:00 +02:00
Bram Moolenaar
9c7e6dd653
patch 8.2.0562: Vim9: cannot split an expression into multiple lines
...
Problem: Vim9: cannot split an expression into multiple lines.
Solution: Continue in next line after an operator.
2020-04-12 20:55:20 +02:00
Bram Moolenaar
82de464f76
patch 8.2.0558: Vim9: dict code not covered by tests
...
Problem: Vim9: dict code not covered by tests.
Solution: Remove dead code, adjust test case.
2020-04-12 18:02:06 +02:00
Bram Moolenaar
4fdae9996f
patch 8.2.0555: Vim9: line continuation is not always needed
...
Problem: Vim9: line continuation is not always needed.
Solution: Recognize continuation lines automatically in list and dict.
2020-04-12 16:38:57 +02:00
Bram Moolenaar
5da356e073
patch 8.2.0536: Vim9: some compilation code not tested
...
Problem: Vim9: some compilation code not tested.
Solution: Add more test cases.
2020-04-09 19:34:43 +02:00
Bram Moolenaar
5deeb3f1f9
patch 8.2.0512: Vim9: no optional arguments in func type
...
Problem: Vim9: no optional arguments in func type.
Solution: Check for question mark after type. Find function reference
without function().
2020-04-05 17:08:17 +02:00
Bram Moolenaar
d77a8525d5
patch 8.2.0508: Vim9: func and partial types not done yet
...
Problem: Vim9: func and partial types not done yet
Solution: Fill in details about func declaration, drop a separate partial
declaration.
2020-04-03 21:59:57 +02:00
Bram Moolenaar
a8c1770469
patch 8.2.0492: Vim9: some error messages not tested
...
Problem: Vim9: some error messages not tested.
Solution: Add more tests. Remove dead code. Fix uncovered bugs.
2020-04-01 21:17:24 +02:00
Bram Moolenaar
9be61bbb17
patch 8.2.0486: Vim9: some code and error messages not tested
...
Problem: Vim9: some code and error messages not tested.
Solution: Add more tests.
2020-03-30 22:51:24 +02:00
Bram Moolenaar
92dba36fc8
patch 8.2.0484: Vim9: some error messages not tested
...
Problem: Vim9: some error messages not tested.
Solution: Add more tests.
2020-03-30 21:22:56 +02:00
Bram Moolenaar
d25ec2cfa0
patch 8.2.0483: Vim9: "let x = x + 1" does not give an error
...
Problem: Vim9: "let x = x + 1" does not give an error.
Solution: Hide the variable when compiling the expression.
2020-03-30 21:05:45 +02:00
Bram Moolenaar
0b37a2f379
patch 8.2.0480: Vim9: some code is not tested
...
Problem: Vim9: some code is not tested.
Solution: Add more tests.
2020-03-29 21:38:15 +02:00
Bram Moolenaar
c58164c5cf
patch 8.2.0477: Vim9: error messages not tested
...
Problem: Vim9: error messages not tested.
Solution: Add more tests.
2020-03-29 18:40:30 +02:00
Bram Moolenaar
ee619e5bc0
patch 8.2.0469: Vim9: no error for missing ] after list
...
Problem: Vim9: no error for missing ] after list.
Solution: Add error message. Add more tests.
2020-03-28 21:38:06 +01:00
Bram Moolenaar
33fa29cf74
patch 8.2.0467: Vim9: some errors are not tested
...
Problem: Vim9: some errors are not tested
Solution: Add more tests. Fix that Vim9 script flag is not reset.
2020-03-28 19:41:33 +01:00
Bram Moolenaar
5381c7a162
patch 8.2.0348: Vim9: not all code tested
...
Problem: Vim9: not all code tested.
Solution: Add a few more tests. fix using "b:" in literal dictionary.
2020-03-02 22:53:32 +01:00
Bram Moolenaar
42a480bf72
patch 8.2.0336: Vim9: insufficient test coverage for compiling
...
Problem: Vim9: insufficient test coverage for compiling.
Solution: Add more tests.
2020-02-29 23:23:47 +01:00