Bram Moolenaar
ed677f5587
patch 8.2.1428: Vim9: :def function does not abort on nested function error
...
Problem: Vim9: :def function does not abort on nested function error.
Solution: Check whether an error message was given. (closes #6691 )
2020-08-12 16:38:10 +02:00
Bram Moolenaar
b3ca982407
patch 8.2.1404: Vim9: script test fails in the GUI
...
Problem: Vim9: script test fails in the GUI.
Solution: Use another key to map. Improve cleanup.
2020-08-09 14:43:58 +02:00
Bram Moolenaar
3896a105eb
patch 8.2.1403: Vim9: Vim highlighting may fail in cmdline window
...
Problem: Vim9: Vim highlighting fails in cmdline window if it uses Vim9
commands.
Solution: Allow using :vim9script, :import and :export while in the cmdline
window. (closes #6656 )
2020-08-09 14:33:55 +02:00
Bram Moolenaar
730b248339
patch 8.2.1400: Vim9: test does not delete written files
...
Problem: Vim9: test does not delete written files.
Solution: Correct file names.
2020-08-09 13:02:10 +02:00
Bram Moolenaar
efa94447e8
patch 8.2.1399: Vim9: may find imported item in wrong script
...
Problem: Vim9: may find imported item in wrong script.
Solution: When looking up script-local function use the embedded script ID.
(issue #6644 )
2020-08-08 22:16:00 +02:00
Bram Moolenaar
98b4f145eb
patch 8.2.1395: Vim9: no error if declaring a funcref with lower case letter
...
Problem: Vim9: no error if declaring a funcref with a lower case letter.
Solution: Check the name after the type is inferred. Fix confusing name.
2020-08-08 15:46:01 +02:00
Bram Moolenaar
2dd0a2c39a
patch 8.2.1394: Vim9: compiling a function interferes with command modifiers
...
Problem: Vim9: compiling a function interferes with command modifiers.
Solution: Save and restore command modifiers. (closes #6658 )
2020-08-08 15:10:27 +02:00
Bram Moolenaar
fa211f3c6d
patch 8.2.1391: Vim9: no error for shadowing a script function
...
Problem: Vim9: no error for shadowing a script function.
Solution: Check for already defined items. (closes #6652 )
2020-08-07 22:00:26 +02:00
Bram Moolenaar
1c199f9c70
patch 8.2.1390: Vim9: type error after storing an option value
...
Problem: Vim9: type error after storing an option value.
Solution: Drop the type after a STOREOPT instruction. (closes #6632 )
2020-08-07 21:28:34 +02:00
Bram Moolenaar
dd29f1b056
patch 8.2.1388: Vim9: += only works for numbers
...
Problem: Vim9: += only works for numbers.
Solution: Use += as concatenate for a list. (closes #6646 )
2020-08-07 20:46:20 +02:00
Bram Moolenaar
95dd9f2571
patch 8.2.1387: Vim9: cannot assign to single letter variable with type
...
Problem: Vim9: cannot assign to single letter variable with type.
Solution: Exclude the colon from the variable name. (closes #6647 )
2020-08-07 19:28:08 +02:00
Bram Moolenaar
8e1986e389
patch 8.2.1382: Vim9: using :import in filetype plugin gives an error
...
Problem: Vim9: using :import in filetype plugin gives an error.
Solution: Allow commands with the EX_LOCK_OK flag. (closes #6636 )
2020-08-06 22:11:06 +02:00
Bram Moolenaar
803af686e2
patch 8.2.1376: Vim9: expression mapping causes error for using :import
...
Problem: Vim9: expression mapping causes error for using :import.
Solution: Add EX_LOCK_OK to :import and :export. (closes 3606)
2020-08-05 16:20:03 +02:00
Bram Moolenaar
a71e263320
patch 8.2.1374: Vim9: error for assigning empty list to script variable
...
Problem: Vim9: error for assigning empty list to script variable.
Solution: Use t_unknown for empty list member. (closes #6595 )
2020-08-05 15:11:03 +02:00
Bram Moolenaar
f9b2b49663
patch 8.2.1373: Vim9: no error for assigning to non-existing script var
...
Problem: Vim9: no error for assigning to non-existing script var.
Solution: Check that in Vim9 script the variable was defined. (closes #6630 )
2020-08-05 14:34:14 +02:00
Bram Moolenaar
8314454648
patch 8.2.1359: Vim9: cannot assign to / register in Vim9 script
...
Problem: Vim9: cannot assign to / register in Vim9 script.
Solution: Adjust check for assignment in Vim9 script. (closes #6567 )
2020-08-02 20:40:43 +02:00
Bram Moolenaar
434d72cbf2
patch 8.2.1358: Vim9: test fails with +dnd is not available
...
Problem: Vim9: test fails with +dnd is not available.
Solution: Add condition.
2020-08-02 20:03:25 +02:00
Bram Moolenaar
658217276f
patch 8.2.1357: Vim9: cannot assign to / register
...
Problem: Vim9: cannot assign to / register.
Solution: Adjust check for assignment.
2020-08-02 18:58:54 +02:00
Bram Moolenaar
c2ee44cc38
patch 8.2.1355: Vim9: no error using :let for options and registers
...
Problem: Vim9: no error using :let for options and registers.
Solution: Give an error. (closes #6568 )
2020-08-02 16:59:00 +02:00
Bram Moolenaar
b9a2cac3ef
patch 8.2.1350: Vim9: no test for error message when redefining function
...
Problem: Vim9: no test for error message when redefining function.
Solution: Add a test.
2020-08-01 22:23:20 +02:00
Bram Moolenaar
eef2102e20
patch 8.2.1349: Vim9: can define a function with the name of an import
...
Problem: Vim9: can define a function with the name of an import.
Solution: Disallow using an existing name. (closes #6585 )
2020-08-01 22:16:43 +02:00
Bram Moolenaar
f5a48010ef
patch 8.2.1342: Vim9: accidentally using "t" gives a confusing error
...
Problem: Vim9: accidentally using "x" gives a confusing error.
Solution: Disallow using ":t" in Vim9 script. (issue #6399 )
2020-08-01 17:00:03 +02:00
Bram Moolenaar
2caa1594e7
patch 8.2.1339: Vim9: assigning to global dict variable doesn't work
...
Problem: Vim9: assigning to global dict variable doesn't work.
Solution: Guess variable type based in index type. (issue #6591 )
2020-08-01 15:53:19 +02:00
Bram Moolenaar
8e4c8c853e
patch 8.2.1338: Vim9: assigning to script-local variable doesn't check type
...
Problem: Vim9: assigning to script-local variable doesn't check type.
Solution: Use the type. (issue #6591 )
2020-08-01 15:38:38 +02:00
Bram Moolenaar
586268721d
patch 8.2.1337: Vim9: cannot use empty key in dict assignment
...
Problem: Vim9: cannot use empty key in dict assignment.
Solution: Allow empty key. (closes #6591 )
2020-08-01 14:06:38 +02:00
Bram Moolenaar
c7e44a7e4c
patch 8.2.1324: Vim9: line break after "=" does not work
...
Problem: Vim9: line break after "=" does not work.
Solution: Also allow for NUL after "=". (closes #6549 )
2020-07-29 21:37:43 +02:00
Bram Moolenaar
33afa2447b
patch 8.2.1320: Vim9: cannot declare some single letter variables
...
Problem: Vim9: cannot declare some single letter variables.
Solution: Do not recognize a colon for a namespace for single letter
variables. (closes #6547 )
2020-07-29 19:18:00 +02:00
Bram Moolenaar
9898107f54
patch 8.2.1314: Vim9: rule for comment after :function is confusing
...
Problem: Vim9: rule for comment after :function is confusing.
Solution: Allow double quoted comment after :function in vim9script.
(closes #6556 )
2020-07-29 14:40:25 +02:00
Bram Moolenaar
b5ed266037
patch 8.2.1313: Vim9 script: cannot assign to environment variable
...
Problem: Vim9 script: cannot assign to environment variable.
Solution: Recognize environment variable assignment. (closes #6548 )
Also options and registers.
2020-07-28 22:38:37 +02:00
Bram Moolenaar
ae616494d7
patch 8.2.1308: Vim9: accidentally using "x" causes Vim to exit
...
Problem: Vim9: accidentally using "x" causes Vim to exit.
Solution: Disallow using ":x" or "xit" in Vim9 script. (closes #6399 )
2020-07-28 20:07:27 +02:00
Bram Moolenaar
2d6b20d6a9
patch 8.2.1293: Vim9: error when using vim9script in TextYankPost
...
Problem: Vim9: error when using vim9script in TextYankPost.
Solution: Use EX_LOCKOK instead of the EX_CMDWIN flag for command that can
be used when text is locked. (closes #6529 )
2020-07-25 19:30:59 +02:00
Bram Moolenaar
925e9fd633
patch 8.2.1290: Vim9: cannot replace a global function
...
Problem: Vim9: cannot replace a global function.
Solution: Allow for "!" on a global function. (closes #6524 ) Also fix that
:delfunc on a :def function only made it empty.
2020-07-25 15:41:11 +02:00
Bram Moolenaar
40f4f7a48c
patch 8.2.1287: Vim9: crash when using an imported function
...
Problem: Vim9: crash when using an imported function.
Solution: Add the function type to the imported entry. (closes #6522 )
2020-07-23 22:41:43 +02:00
Bram Moolenaar
43e969d3f9
patch 8.2.1286: Vim9: No error when using a type to a window variable
...
Problem: Vim9: No error when using a type to a window variable
Solution: Recognize the syntax and give an error. (closes #6521 )
2020-07-23 21:14:43 +02:00
Bram Moolenaar
63be3d4ba0
patch 8.2.1274: Vim9: no error for missing white space at script level
...
Problem: Vim9: no error for missing white space in assignment at script
level.
Solution: Check for white space. (closes #6495 )
2020-07-23 13:11:37 +02:00
Bram Moolenaar
4cdb13ce81
patch 8.2.1272: Vim9: type not checked if declaration also assigns value
...
Problem: Vim9: type not checked if declaration also assigns value.
Solution: Check the type. (issue #6507 )
2020-07-22 21:45:14 +02:00
Bram Moolenaar
e7e4838f25
patch 8.2.1268: Vim9: no error for using double quote comment
...
Problem: Vim9: no error for using double quote comment after :func or :def.
Solution: Only accept double quote when not in Vim9 script and not after
:def. (closes #6483 )
2020-07-22 18:17:08 +02:00
Bram Moolenaar
b31be3f909
patch 8.2.1257: Vim9: list unpack doesn't work at the script level
...
Problem: Vim9: list unpack doesn't work at the script level.
Solution: Detect unpack assignment better. (closes #6494 )
2020-07-20 22:37:44 +02:00
Bram Moolenaar
b209750b5e
patch 8.2.1246: Vim9: comment after assignment doesn't work
...
Problem: Vim9: comment after assignment doesn't work.
Solution: Skip over white space. (closes #6481 )
2020-07-19 17:17:02 +02:00
Bram Moolenaar
d032f34a51
patch 8.2.1238: Vim9: a few remaining errors not caught by try/catch
...
Problem: Vim9: a few remaining errors not caught by try/catch.
Solution: Do not bail out if an error is inside try/catch.
2020-07-18 18:13:02 +02:00
Bram Moolenaar
e859312e74
patch 8.2.1236: Vim9: a few errors not caught by try/catch
...
Problem: Vim9: a few errors not caught by try/catch.
Solution: Do not bail out if an error is inside try/catch. Fix that a not
matching catch doesn't jump to :endtry.
2020-07-18 15:17:02 +02:00
Bram Moolenaar
f0b9f43c31
patch 8.2.1233: Vim9: various errors not caught by try/catch
...
Problem: Vim9: various errors not caught by try/catch.
Solution: Do not bail out if an error is inside try/catch.
2020-07-17 23:03:17 +02:00
Bram Moolenaar
68d130c618
patch 8.2.1230: Vim9: list index error not caught by try/catch
...
Problem: Vim9: list index error not caught by try/catch.
Solution: Do not bail out if an error is inside try/catch. (closes #6462 )
2020-07-17 22:06:44 +02:00
Bram Moolenaar
f5be8cdb77
patch 8.2.1227: Vim9: allowing both quoted and # comments is confusing
...
Problem: Vim9: allowing both quoted and # comments is confusing.
Solution: Only support # comments in Vim9 script.
2020-07-17 20:36:00 +02:00
Bram Moolenaar
9b7bf9e98f
patch 8.2.1183: assert_fails() checks the last error message
...
Problem: assert_fails() checks the last error message.
Solution: Check the first error, it is more relevant. Fix all the tests
that rely on the old behavior.
2020-07-11 22:14:59 +02:00
Bram Moolenaar
6b7a0a8c20
patch 8.2.1159: Vim9: no error for missing space after a comma
...
Problem: Vim9: no error for missing space after a comma.
Solution: Check for white space.
2020-07-08 18:38:08 +02:00
Bram Moolenaar
c620c055ce
patch 8.2.1154: Vim9: crash when using imported function
...
Problem: Vim9: crash when using imported function.
Solution: Check for a function type. Set the script context when calling a
function. (closes #6412 )
2020-07-08 15:16:19 +02:00
Bram Moolenaar
bed36b939a
patch 8.2.1153: Vim9: script test fails on some systems
...
Problem: Vim9: script test fails on some systems.
Solution: Return proper value from Compare().
2020-07-07 23:31:36 +02:00
Bram Moolenaar
fe465a01cf
patch 8.2.1152: Vim9: function reference is missing script prefix
...
Problem: Vim9: function reference is missing script prefix.
Solution: Use the actual function name instead of the name searched for in
the script context. (closes #6412 )
2020-07-07 22:50:12 +02:00
Bram Moolenaar
0ad3e894d7
patch 8.2.1145: Vim9: "for" only accepts a list at compile time
...
Problem: Vim9: "for" only accepts a list at compile time.
Solution: Also accept a list at runtime.
2020-07-05 21:38:11 +02:00