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
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
6797966dfc
patch 8.2.1024: Vim9: no error for using "let g:var = val"
...
Problem: Vim9: no error for using "let g:var = val".
Solution: Add an error.
2020-06-20 22:50:47 +02:00
Bram Moolenaar
0cb5bcf583
patch 8.2.1023: Vim9: redefining a function uses a new index every time
...
Problem: Vim9: redefining a function uses a new index every time.
Solution: When redefining a function clear the contents and re-use the
index.
2020-06-20 18:19:09 +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
84cf6bd81b
patch 8.2.0988: getting directory contents is always case sorted
...
Problem: Getting directory contents is always case sorted.
Solution: Add sort options and v:collate. (Christian Brabandt, closes #6229 )
2020-06-16 20:03:43 +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
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
71ccd03ee8
patch 8.2.0967: unnecessary type casts for vim_strnsave()
...
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
2020-06-12 22:59:11 +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
a9c0104947
patch 8.2.0918: duplicate code for evaluating expression argument
...
Problem: Duplicate code for evaluating expression argument.
Solution: Merge the code and make the use more flexible.
2020-06-07 14:50:50 +02:00
Bram Moolenaar
adc17a5f9d
patch 8.2.0915: search() cannot skip over matches like searchpair() can
...
Problem: Search() cannot skip over matches like searchpair() can.
Solution: Add an optional "skip" argument. (Christian Brabandt, closes #861 )
2020-06-06 18:37:51 +02:00
Bram Moolenaar
439c036ed0
patch 8.2.0913: code for resetting v:register is duplicated
...
Problem: Code for resetting v:register is duplicated.
Solution: Add reset_reg_var().
2020-06-06 15:58:03 +02:00
Bram Moolenaar
2eec37926d
patch 8.2.0822: Vim9: code left over from discovery phase
...
Problem: Vim9: code left over from discovery phase.
Solution: Remove the dead code.
2020-05-25 20:33:55 +02:00
Bram Moolenaar
f40e51a880
patch 8.2.0819: compiler warning for unused variable
...
Problem: Compiler warning for unused variable.
Solution: Remove the variable.
2020-05-24 23:14:23 +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
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
7e9f351b2e
patch 8.2.0751: Vim9: performance can be improved
...
Problem: Vim9: performance can be improved.
Solution: Don't call break. Inline check for list materialize. Make an
inline version of ga_grow().
2020-05-13 22:44:22 +02:00
Bram Moolenaar
09689a0284
patch 8.2.0725: Vim9: cannot call a function declared later in Vim9 script
...
Problem: Vim9: cannot call a function declared later in Vim9 script.
Solution: Make two passes through the script file.
2020-05-09 22:50:08 +02:00
Bram Moolenaar
7d3664df90
patch 8.2.0718: gcc warning for returning pointer to local variable
...
Problem: Gcc warning for returning pointer to local variable. (John
Marriott)
Solution: Return another pointer.
2020-05-09 13:06:24 +02:00
Bram Moolenaar
b84a381c75
patch 8.2.0675: Vim9: no support for closures
...
Problem: Vim9: no support for closures.
Solution: Do not re-use stack entries.
2020-05-01 15:44:29 +02:00
Bram Moolenaar
6ab0953fef
patch 8.2.0672: heredoc in scripts does not accept lower case marker
...
Problem: Heredoc in scripts does not accept lower case marker.
Solution: Allow lower case only in non-Vim scripts. (Ken Takata,
closes #6019 )
2020-05-01 14:10:13 +02:00
Bram Moolenaar
65d032c779
patch 8.2.0629: setting a boolean option to v:false does not work
...
Problem: Setting a boolean option to v:false does not work.
Solution: Do not use the string representation of the value. (Christian
Brabandt, closes #5974 )
2020-04-24 20:57:01 +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
2bb76accc6
patch 8.2.0607: gcc warns for using uninitialized variable
...
Problem: Gcc warns for using uninitialized variable. (John Marriott)
Solution: Set name_end also for environment variables.
2020-04-19 22:57:44 +02:00
Bram Moolenaar
7e0868efcf
patch 8.2.0602: :unlet $VAR does not work properly
...
Problem: :unlet $VAR does not work properly.
Solution: Make ":lockvar $VAR" fail. Check the "skip" flag.
2020-04-19 17:24:53 +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
6c2b7b8055
patch 8.2.0578: heredoc for interfaces does not support "trim"
...
Problem: Heredoc for interfaces does not support "trim".
Solution: Update the script heredoc support to be same as the :let command.
(Yegappan Lakshmanan, closes #5916 )
2020-04-14 20:15:49 +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
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
4c68375057
patch 8.2.0517: Vim9: cannot separate "func" and "func(): void"
...
Problem: Vim9: cannot separate "func" and "func(): void".
Solution: Use VAR_ANY for "any" and VAR_UNKNOWN for "no type".
2020-04-05 21:38:23 +02:00
Bram Moolenaar
bdff012f44
patch 8.2.0514: several global functions are used in only one file
...
Problem: Several global functions are used in only one file.
Solution: Make the functions static. (Yegappan Lakshmanan, closes #5884 )
2020-04-05 18:56:05 +02:00
Bram Moolenaar
5259275347
patch 8.2.0507: getbufvar() may get the wrong dictionary
...
Problem: Getbufvar() may get the wrong dictionary. (David le Blanc)
Solution: Check for empty name. (closes #5878 )
2020-04-03 18:43:35 +02:00
Bram Moolenaar
aeea72151c
patch 8.2.0500: using the same loop in many places
...
Problem: Using the same loop in many places.
Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339 )
2020-04-02 18:50:46 +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
8601545338
patch 8.2.0473: variables declared in an outer scope
...
Problem: Variables declared in an outer scope.
Solution: Decleare variables only in the scope where they are used.
2020-03-29 15:12:15 +02:00
Bram Moolenaar
14e57909e6
patch 8.2.0361: internal error when using "0" for a callback
...
Problem: Internal error when using "0" for a callback.
Solution: Give a normal error. (closes #5743 )
2020-03-07 16:59:25 +01:00
Bram Moolenaar
b35efa5ed0
patch 8.2.0322: Vim9: error checks not tested
...
Problem: Vim9: error checks not tested.
Solution: Add more test cases. Avoid error for function loaded later.
2020-02-26 20:15:18 +01:00
Bram Moolenaar
d672dde584
patch 8.2.0319: file missing in distribution, comments outdated
...
Problem: File missing in distribution, comments outdated.
Solution: Correct path of README file. Update comments.
2020-02-26 13:43:51 +01:00
Bram Moolenaar
f9706e9df0
patch 8.2.0296: mixing up "long long" and __int64 may cause problems
...
Problem: Mixing up "long long" and __int64 may cause problems. (John
Marriott)
Solution: Pass varnumber_T to vim_snprintf(). Add v:numbersize.
2020-02-22 14:27:04 +01:00
Bram Moolenaar
4e12a5df37
patch 8.2.0201: cannot assign to an imported variable
...
Problem: Cannot assign to an imported variable.
Solution: Make it work.
2020-02-03 20:50:59 +01:00
Bram Moolenaar
b283a8a680
patch 8.2.0200: Vim9 script commands not sufficiently tested
...
Problem: Vim9 script commands not sufficiently tested.
Solution: Add more tests. Fix storing global variable. Make script
variables work.
2020-02-02 22:24:04 +01:00
Bram Moolenaar
0ff6aad393
patch 8.2.0173: build fails with old compiler
...
Problem: Build fails with old compiler.
Solution: Do not use anonymous unions. (John Marriott)
2020-01-29 21:27:21 +01:00
Bram Moolenaar
50985eb1f0
patch 8.2.0159: non-materialized range() list causes problems
...
Problem: Non-materialized range() list causes problems. (Fujiwara Takuya)
Solution: Materialize the list where needed.
2020-01-27 22:09:39 +01:00
Bram Moolenaar
4b96df5a01
patch 8.2.0156: various typos in source files and tests
...
Problem: Various typos in source files and tests.
Solution: Fix the typos. (Emir Sari, closes #5532 )
2020-01-26 22:00:26 +01:00
Bram Moolenaar
21b9e9773d
patch 8.2.0154: reallocating the list of scripts is inefficient
...
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.
2020-01-26 19:26:46 +01:00
Bram Moolenaar
8a7d6542b3
patch 8.2.0149: maintaining a Vim9 branch separately is more work
...
Problem: Maintaining a Vim9 branch separately is more work.
Solution: Merge the Vim9 script changes.
2020-01-26 15:56:19 +01:00
Bram Moolenaar
7ebcba61b2
patch 8.2.0114: info about sourced scripts is scattered
...
Problem: Info about sourced scripts is scattered.
Solution: Use scriptitem_T for info about a script, including s: variables.
Drop ga_scripts.
2020-01-12 17:42:55 +01:00
Bram Moolenaar
9b4a15d5db
patch 8.2.0111: VAR_SPECIAL is also used for booleans
...
Problem: VAR_SPECIAL is also used for booleans.
Solution: Add VAR_BOOL for better type checking.
2020-01-11 16:05:23 +01:00