Bram Moolenaar
9bb3eb3e02
patch 8.2.0994: Vim9: missing function causes compilation error
...
Problem: Vim9: missing function causes compilation error.
Solution: Call test function indirectly.
2020-06-17 20:03:36 +02:00
Bram Moolenaar
f7d267ef20
patch 8.2.0993: Vim9 script test fails with normal features
...
Problem: Vim9 script test fails with normal features.
Solution: Use :func instead of :def for now.
2020-06-17 12:04:54 +02:00
Bram Moolenaar
101f4810e2
patch 8.2.0992: Vim9: crash when using :import in the Vim command
...
Problem: Vim9: crash when using :import in the Vim command.
Solution: Give an error when using :import outside of a script.
(closes #6271 )
2020-06-16 23:18:51 +02:00
Bram Moolenaar
9af78769ee
patch 8.2.0987: Vim9: cannot assign to [var; var]
...
Problem: Vim9: cannot assign to [var; var].
Solution: Assign rest of items to a list.
2020-06-16 11:34:42 +02:00
Bram Moolenaar
47a519a933
patch 8.2.0981: Vim9: cannot compile "[var, var] = list"
...
Problem: Vim9: cannot compile "[var, var] = list".
Solution: Implement list assignment.
2020-06-14 23:05:10 +02:00
Bram Moolenaar
984dddbef4
patch 8.2.0975: Vim9: script variable does not accept optional s: prefix
...
Problem: Vim9: script variable does not accept optional s: prefix.
Solution: Adjust the accepted syntax.
2020-06-14 12:50:24 +02:00
Bram Moolenaar
34db91f7a4
patch 8.2.0973: Vim9: type is not checked when assigning to a script variable
...
Problem: Vim9: type is not checked when assigning to a script variable.
Solution: Check the type.
2020-06-13 19:00:10 +02:00
Bram Moolenaar
c82a5b5da5
patch 8.2.0972: Vim9 script variable declarations need a type
...
Problem: Vim9 script variable declarations need a type.
Solution: Make "let var: type" declare a script-local variable.
2020-06-13 18:09:19 +02:00
Bram Moolenaar
9721fb4ea3
patch 8.2.0960: cannot use :import in legacy Vim script
...
Problem: Cannot use :import in legacy Vim script.
Solution: Support :import in any Vim script.
2020-06-11 23:10:46 +02:00
Bram Moolenaar
25e0f5863e
patch 8.2.0823: Vim9: script reload test is disabled
...
Problem: Vim9: script reload test is disabled.
Solution: Compile a function in the context of the script where it was
defined. Set execution stack for compiled function. Add a test
that an error is reported for the right file/function.
2020-05-25 22:36:50 +02:00
Bram Moolenaar
822ba24743
patch 8.2.0818: Vim9: using a discovery phase doesn't work well
...
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.
2020-05-24 23:00:18 +02:00
Bram Moolenaar
74fae513f8
patch 8.2.0806: using "func!" after vim9script gives confusing error
...
Problem: using "func!" after vim9script gives confusing error.
Solution: Give E477. (closes #6107 )
2020-05-21 21:50:58 +02:00
Bram Moolenaar
843700875e
patch 8.2.0790: Vim9: list index not well tested
...
Problem: Vim9: list index not well tested.
Solution: Add a few more tests.
2020-05-18 14:20:36 +02:00
Bram Moolenaar
df671b4629
patch 8.2.0772: Vim9: some variable initializations not tested
...
Problem: Vim9: some variable initializations not tested.
Solution: Add a few more tests
2020-05-16 22:33:33 +02:00
Bram Moolenaar
a6e67e4f41
patch 8.2.0764: Vim9: assigning to option not fully tested
...
Problem: Vim9: assigning to option not fully tested.
Solution: Add more test cases. Allow using any type for assignment.
2020-05-15 23:36:40 +02:00
Bram Moolenaar
227a69de1e
patch 8.2.0755: Vim9: No error when variable initializer is not a constant
...
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.
2020-05-15 18:17:28 +02:00
Bram Moolenaar
a5d0077efb
patch 8.2.0754: Vim9: No test for forward declaration
...
Problem: Vim9: No test for forward declaration.
Solution: Add a test.
2020-05-14 23:20:55 +02:00
Bram Moolenaar
32e351179e
patch 8.2.0753: Vim9: expressions are evaluated in the discovery phase
...
Problem: Vim9: expressions are evaluated in the discovery phase.
Solution: Bail out if an expression is not a constant. Require a type for
declared constants.
2020-05-14 22:41:15 +02:00
Bram Moolenaar
7e5bd91dc9
patch 8.2.0731: Vim9: parsing declarations continues after :finish
...
Problem: Vim9: parsing declarations continues after :finish.
Solution: Bail out when encountering :finish.
2020-05-10 21:20:29 +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
89483d4043
patch 8.2.0729: Vim9: When reloading a script variables are not cleared
...
Problem: Vim9: When reloading a script variables are not cleared.
Solution: When sourcing a script again clear all script-local variables.
2020-05-10 15:24:44 +02:00
Bram Moolenaar
396f3138ca
patch 8.2.0724: Vim9: appending to buffer/window/tab variable not tested
...
Problem: Vim9: appending to buffer/window/tab variable not tested
Solution: Add a test.
2020-05-09 18:44:56 +02:00
Bram Moolenaar
8a1c101315
patch 8.2.0706: Vim9: using assert_fails() causes function to finish
...
Problem: Vim9: using assert_fails() causes function to finish.
Solution: Check did_emsg instead of called_emsg.
2020-05-07 14:07:25 +02:00
Bram Moolenaar
2a1381c305
patch 8.2.0701: Vim9 test fails without job feature
...
Problem: Vim9 test fails without job feature.
Solution: Add feature check.
2020-05-05 23:32:58 +02:00
Bram Moolenaar
40ee466c36
patch 8.2.0700: Vim9: converting error message to exception not tested
...
Problem: Vim9: converting error message to exception not tested.
Solution: Test exception from error. Do not continue after :echoerr.
2020-05-05 22:08:26 +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
03afdcf1f4
patch 8.2.0653: using uninitialized pointer
...
Problem: using uninitialized pointer.
Solution: Move assignment up. (John Marriott)
2020-04-27 23:39:30 +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
f93c7fea08
patch 8.2.0626: Vim9: wrong syntax of function in Vim9 script
...
Problem: Vim9: wrong syntax of function in Vim9 script.
Solution: Give error for missing space. Implement :echomsg and :echoerr.
(closes #5670 )
2020-04-23 22:16:53 +02:00
Bram Moolenaar
a72cfb80cd
patch 8.2.0624: Vim9: no check for space before #comment
...
Problem: Vim9: no check for space before #comment.
Solution: Add space checks. Fix :throw with double quoted string.
2020-04-23 17:07:30 +02:00
Bram Moolenaar
1966c24881
patch 8.2.0613: Vim9: no check for space before #comment
...
Problem: Vim9: no check for space before #comment.
Solution: Add space checks.
2020-04-20 22:42:32 +02:00
Bram Moolenaar
2c5ed4e330
patch 8.2.0612: Vim9: no check for space before #comment
...
Problem: Vim9: no check for space before #comment.
Solution: Add space checks.
2020-04-20 19:42:10 +02:00
Bram Moolenaar
faac410409
patch 8.2.0611: Vim9: no check for space before #comment
...
Problem: Vim9: no check for space before #comment.
Solution: Add space checks.
2020-04-20 17:46:14 +02:00
Bram Moolenaar
7bdaea6e0d
patch 8.2.0605: Vim9: cannot unlet an environment variable
...
Problem: Vim9: cannot unlet an environment variable.
Solution: Implement unlet for $VAR.
2020-04-19 18:27:26 +02:00
Bram Moolenaar
d72c1bf0a6
patch 8.2.0601: Vim9: :unlet is not compiled
...
Problem: Vim9: :unlet is not compiled.
Solution: Implement :unlet instruction and check for errors.
2020-04-19 16:28:59 +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
a26b9700d7
patch 8.2.0595: Vim9: not all commands using ends_excmd() tested
...
Problem: Vim9: not all commands using ends_excmd() tested.
Solution: Find # comment after regular commands. Add more tests. Report
error for where it was caused.
2020-04-18 19:53:28 +02:00
Bram Moolenaar
4a8d9f2ed8
patch 8.2.0586: Vim9: # comment not sufficiently tested
...
Problem: Vim9: # comment not sufficiently tested
Solution: Check for preceding white space.
2020-04-16 22:54:32 +02:00
Bram Moolenaar
7a09224583
patch 8.2.0585: Vim9: # comment not recognized after :vim9script
...
Problem: Vim9: # comment not recognized after :vim9script.
Solution: Check script type. Make comment after ":echo" work. And in
several other places.
2020-04-16 22:10:49 +02:00
Bram Moolenaar
cb711abf0f
patch 8.2.0583: Vim9: # comment not recognized in :def function
...
Problem: Vim9: # comment not recognized in :def function.
Solution: Recognize and skip # comment.
2020-04-16 13:00:29 +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
2c330432cf
patch 8.2.0567: Vim9: cannot put comments halfway expressions
...
Problem: Vim9: cannot put comments halfway expressions.
Solution: Support # comments in many places.
2020-04-13 14:41:35 +02:00
Bram Moolenaar
675f716efb
patch 8.2.0565: Vim9: tests contain superfluous line continuation
...
Problem: Vim9: tests contain superfluous line continuation.
Solution: Remove line continuation no longer needed. Skip empty lines.
2020-04-12 22:53:54 +02:00
Bram Moolenaar
e6085c5350
patch 8.2.0561: Vim9: cannot split function call in multiple lines
...
Problem: Vim9: cannot split function call in multiple lines.
Solution: Find more arguments in following lines.
2020-04-12 20:19:16 +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
cab2767874
patch 8.2.0537: Vim9: no check for sandbox when setting v:var
...
Problem: Vim9: no check for sandbox when setting v:var.
Solution: Check for sandbox.
2020-04-09 20:10:55 +02:00
Bram Moolenaar
ee4e0c1e9a
patch 8.2.0522: several errors are not tested for
...
Problem: Several errors are not tested for.
Solution: Add tests. (Yegappan Lakshmanan, closes #5892 )
2020-04-06 21:35:05 +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