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
69f7050ceb
patch 8.2.2263: Vim9: compilation error with try-catch in skipped block
...
Problem: Vim9: compilation error with try-catch in skipped block.
Solution: Do not bail out when generate_instr() returns NULL. (closes #7584 )
2021-01-01 16:10:46 +01:00
Bram Moolenaar
d5ea8f08f7
patch 8.2.2261: Vim9: boolean option gets string type
...
Problem: Vim9: boolean option gets string type.
Solution: Check for VAR_BOOL. (closes #7588 )
2021-01-01 14:49:15 +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
dd1f426bd6
patch 8.2.2254: Vim9: bool option type is number
...
Problem: Vim9: bool option type is number.
Solution: Have get_option_value() return a different value for bool and
number options. (closes #7583 )
2020-12-31 17:41:01 +01:00
Bram Moolenaar
6b55377303
patch 8.2.2252: Vim9: crash when using lambda without return type in dict
...
Problem: Vim9: crash when using lambda without return type in dict.
Solution: Without a return type use t_unknown. (closes #7587 )
2020-12-31 13:31:23 +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
dcc58e031d
patch 8.2.2239: Vim9: concatenating lines with backslash is inconvenient
...
Problem: Vim9: concatenating lines with backslash is inconvenient.
Solution: Support concatenating lines starting with '|', useful for
:autocmd, :command, etc. (closes #6702 )
2020-12-28 20:53:21 +01:00
Bram Moolenaar
e462f52db3
patch 8.2.2227: Vim9: recognizing lambda is too complicated
...
Problem: Vim9: recognizing lambda is too complicated.
Solution: Call compile_lambda() and check for NOTDONE.
2020-12-27 14:43:30 +01:00
Bram Moolenaar
a629495530
patch 8.2.2225: Vim9: error when using :import in legacy script twice
...
Problem: Vim9: error when using :import in legacy script twice.
Solution: Make it possible to redefine an import when reloading.
2020-12-27 13:39:50 +01:00
Bram Moolenaar
07a65d26e7
patch 8.2.2224: Vim9: crash if script reloaded with different variable type
...
Problem: Vim9: crash if script reloaded with different variable type.
Solution: Check the type when accessing the variable.
2020-12-26 20:09:15 +01:00
Bram Moolenaar
cdc40c43f1
patch 8.2.2223: Vim9: Reloading marks a :def function as deleted
...
Problem: Vim9: Reloading marks a :def function as deleted.
Solution: Clear the function contents but keep the index.
2020-12-26 17:43:08 +01:00
Bram Moolenaar
7e3682068b
patch 8.2.2219: Vim9: method call with expression not supported
...
Problem: Vim9: method call with expression not supported.
Solution: Implement expr->(expr)().
2020-12-25 21:56:57 +01:00
Bram Moolenaar
6e2c2c50ba
patch 8.2.2216: Vim9: range with missing colon can be hard to spot
...
Problem: Vim9: range with missing colon can be hard to spot.
Solution: Include the start of the range in the error. (closes #7543 )
2020-12-25 19:25:45 +01:00
Bram Moolenaar
56ce9ea3ea
patch 8.2.2215: Vim9: not recognized in global command
...
Problem: Vim9: not recognized in global command.
Solution: Skip over pattern. (issue #7541 )
2020-12-25 18:35:29 +01:00
Bram Moolenaar
3868f59466
patch 8.2.2210: Vim9: allocating a type to set TTFLAG_BOOL_OK
...
Problem: Vim9: allocating a type to set TTFLAG_BOOL_OK.
Solution: Add t_number_bool.
2020-12-25 13:20:41 +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
4aab88d919
patch 8.2.2208: Vim9: after reloading a script variable index may be invalid
...
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 )
2020-12-24 21:56:41 +01:00
Bram Moolenaar
65c4415276
patch 8.2.2204: Vim9: using -> both for method and lambda is confusing
...
Problem: Vim9: using -> both for method and lambda is confusing.
Solution: Use => for lambda in :def function.
2020-12-24 15:14:01 +01:00
Bram Moolenaar
27bf7af9d0
patch 8.2.2200: Vim9: lambda without white space around -> is confusing
...
Problem: Vim9: lambda without white space around -> is confusing.
Solution: Require white space in a :def funtion. (issue #7503 )
2020-12-23 20:27:31 +01:00
Bram Moolenaar
58a52f215a
patch 8.2.2191: Vim9: using wrong name with lambda in nested function
...
Problem: Vim9: using wrong name with lambda in nested function.
Solution: Copy the lambda name earlier. (closes #7525 )
2020-12-22 18:56:55 +01:00
Bram Moolenaar
077a42318c
patch 8.2.2190: Vim9: crash when compiled with EXITFREE
...
Problem: Vim9: crash when compiled with EXITFREE.
Solution: Check that df_ufunc is not NULL.
2020-12-22 18:33:27 +01:00
Bram Moolenaar
cd45ed03bf
patch 8.2.2188: Vim9: crash when calling global function from :def function
...
Problem: Vim9: crash when calling global function from :def function.
Solution: Set the outer context. Define the partial for the context on the
original function. Use a refcount to keep track of which ufunc is
using a dfunc. (closes #7525 )
2020-12-22 17:35:54 +01:00
Bram Moolenaar
4f5e397756
patch 8.2.2179: Vim9: crash when indexing a dict with a number
...
Problem: Vim9: crash when indexing a dict with a number.
Solution: Add ISN_STOREINDEX. (closes #7513 )
2020-12-21 17:30:50 +01:00
Bram Moolenaar
52c124d330
patch 8.2.2173: Vim9: get internal error when assigning to undefined variable
...
Problem: Vim9: get internal error when assigning to undefined variable.
Solution: Add error message. (closes #7475 )
2020-12-20 21:43:35 +01:00
Bram Moolenaar
d24602f43c
patch 8.2.2168: Vim9: error for assigning to dict of dict
...
Problem: Vim9: error for assigning to dict of dict.
Solution: Remember the destination type. (closes #7506 )
2020-12-20 15:20:56 +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
399ea8108c
patch 8.2.2145: Vim9: concatenating lists does not adjust type of result
...
Problem: Vim9: concatenating lists does not adjust type of result.
Solution: When list member types differ use "any" member type.
(closes #7473 )
2020-12-15 21:28:57 +01:00
Bram Moolenaar
ec792290eb
patch 8.2.2143: Vim9: dead code in compiling :unlet
...
Problem: Vim9: dead code in compiling :unlet.
Solution: Don't check for "!" a second time.
2020-12-13 21:26:56 +01:00
Bram Moolenaar
acbae18df5
patch 8.2.2139: Vim9: unreachable code in assignment
...
Problem: Vim9: unreachable code in assignment.
Solution: Don't check "new_local" when "has_index" is set. Add test for
wrong type of list index.
2020-12-13 18:44:43 +01:00
Bram Moolenaar
e498429087
patch 8.2.2137: Vim9: :echo and :execute give error for empty argument
...
Problem: Vim9: :echo and :execute give error for empty argument.
Solution: Ignore an empty argument. (closes #7468 )
2020-12-13 14:19:25 +01:00
Bram Moolenaar
709664cca0
patch 8.2.2131: Vim9: crash when lambda uses same var as assignment
...
Problem: Vim9: crash when lambda uses same var as assignment.
Solution: Do not let lookup_local change lv_from_outer, make a copy.
(closes #7461 )
2020-12-12 14:33:41 +01:00
Bram Moolenaar
08597875b2
patch 8.2.2124: Vim9: a range cannot be computed at runtime
...
Problem: Vim9: a range cannot be computed at runtime.
Solution: Add the ISN_RANGE instruction.
2020-12-10 19:43:40 +01:00
Bram Moolenaar
7257af477b
patch 8.2.2115: Vim9: some errors not tested for; dead code
...
Problem: Vim9: some errors not tested for; dead code.
Solution: Add a test. Remove dead code.
2020-12-08 22:08:51 +01:00
Bram Moolenaar
61265b4000
patch 8.2.2114: Vim9: unreachable code in assignment
...
Problem: Vim9: unreachable code in assignment.
Solution: Remove impossible condition and code.
2020-12-08 21:53:28 +01:00
Bram Moolenaar
8ff16e0183
patch 8.2.2107: Vim9: some errors not tested
...
Problem: Vim9: some errors not tested.
Solution: Add tests. Fix getting the right error.
2020-12-07 21:49:52 +01:00
Bram Moolenaar
41d6196e30
patch 8.2.2103: Vim9: unreachable code
...
Problem: Vim9: unreachable code.
Solution: Remove the code to prepend s: to the variable name
2020-12-06 20:12:43 +01:00
Bram Moolenaar
8bb0f5472c
patch 8.2.2101: Vim9: memory leak when literal dict has an error
...
Problem: Vim9: memory leak when literal dict has an error and when an
expression is not complete.
Solution: Clear the typval and the growarray.
2020-12-06 16:03:55 +01:00
Bram Moolenaar
918a424917
patch 8.2.2099: Vim9: some checks are not tested
...
Problem: Vim9: some checks are not tested.
Solution: Add a few more tests. Give better error messages.
2020-12-06 14:37:08 +01:00
Bram Moolenaar
f665e97ffa
patch 8.2.2096: Vim9: command modifiers not restored after assignment
...
Problem: Vim9: command modifiers not restored after assignment.
Solution: Jump to nextline instead of using continue.
2020-12-05 19:17:16 +01:00
Bram Moolenaar
c5e6a7179d
patch 8.2.2090: Vim9: dict does not accept a key in quotes
...
Problem: Vim9: dict does not accept a key in quotes.
Solution: Recognize a key in single or double quotes.
2020-12-04 19:12:14 +01:00
Bram Moolenaar
21e51221f2
patch 8.2.2087: Vim9: memory leak when statement is truncated
...
Problem: Vim9: memory leak when statement is truncated.
Solution: Increment the number of local variables.
2020-12-04 12:43:29 +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
7f76494aac
patch 8.2.2081: Vim9: cannot handle a linebreak after "=" in assignment
...
Problem: Vim9: cannot handle a linebreak after "=" in assignment.
Solution: Skip over linebreak. (closes #7407 )
2020-12-02 15:11:18 +01:00
Bram Moolenaar
ea87069d78
patch 8.2.2080: Vim9: no proper error message for using s:var in for loop
...
Problem: Vim9: no proper error message for using s:var in for loop.
Solution: Give a specific error.
2020-12-02 14:24:30 +01:00
Bram Moolenaar
38bd8de551
patch 8.2.2079: Vim9: cannot put a linebreak before or after "in" of ":for"
...
Problem: Vim9: cannot put a linebreak before or after "in" of ":for".
Solution: Skip over linebreak.
2020-12-02 13:23:36 +01:00
Bram Moolenaar
4b8a065145
patch 8.2.2073: Vim9: for with unpack only works for local variables
...
Problem: Vim9: for with unpack only works for local variables.
Solution: Recognize different destinations.
2020-12-01 16:30:44 +01:00
Bram Moolenaar
004d9b00ba
patch 8.2.2072: Vim9: list assign not well tested
...
Problem: Vim9: list assign not well tested.
Solution: Test with different destinations. Fix white space error.
2020-11-30 21:40:03 +01:00
Bram Moolenaar
dc234caff2
patch 8.2.2063: Vim9: only one level of indexing supported
...
Problem: Vim9: only one level of indexing supported.
Solution: Handle more than one index in an assignment.
2020-11-28 18:52:33 +01:00