Bram Moolenaar
7892b953e0
patch 8.2.1256: Vim9: type wrong after getting dict item in lambda
...
Problem: Vim9: type wrong after getting dict item in lambda.
Solution: Set the type to "any" after enforcing dict type. (closes #6491 )
2020-07-20 22:09:34 +02:00
Bram Moolenaar
2f8ce0ae8a
patch 8.2.1250: Vim9: cannot use the g:, b:, t: and w: namespaces
...
Problem: Vim9: cannot use the g:, b:, t: and w: namespaces.
Solution: Add instructions to push a dict for the namespaces. (closes #6480 )
2020-07-19 19:47:35 +02:00
Bram Moolenaar
bf9d8c3765
patch 8.2.1247: Vim9: cannot index a character in a string
...
Problem: Vim9: cannot index a character in a string.
Solution: Add ISN_STRINDEX instruction. (closes #6478 )
2020-07-19 17:55: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
6802cce407
patch 8.2.1244: Vim9: in lambda index assumes a list
...
Problem: Vim9: in lambda index assumes a list.
Solution: Use the value type to decide about list or dict. (closes #6479 )
2020-07-19 15:49:49 +02:00
Bram Moolenaar
75783bd84e
patch 8.2.1243: Vim9: cannot have a comment line halfway a list
...
Problem: Vim9: cannot have a comment or empty line halfway a list at script
level.
Solution: Skip more than one line if needed.
2020-07-19 14:41:58 +02:00
Bram Moolenaar
65b9545f44
patch 8.2.1242: Vim9: no error if calling a function with wrong type
...
Problem: Vim9: no error if calling a function with wrong argument type.
Solution: Check types of arguments. (closes #6469 )
2020-07-19 14:03:09 +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
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
e30f64b4b5
patch 8.2.1223: Vim9: invalid type error for function default value
...
Problem: Vim9: invalid type error for function default value.
Solution: Use right argument index. (closes #6458 )
2020-07-15 19:48:20 +02:00
Bram Moolenaar
3d48e25dcb
patch 8.2.1218: Vim9: cannot use 'text'->func()
...
Problem: Vim9: cannot use 'text'->func().
Solution: Recognize string at start of command.
2020-07-15 14:15:52 +02:00
Bram Moolenaar
f1a2368d81
patch 8.2.1201: Vim9: crash when passing number as dict key
...
Problem: Vim9: crash when passing number as dict key.
Solution: Check key type to be string. (closes #6449 )
2020-07-13 18:55:48 +02:00
Bram Moolenaar
985116ae0b
patch 8.2.1191: Vim9: crash when function calls itself
...
Problem: Vim9: crash when function calls itself.
Solution: Add status UF_COMPILING. (closes #6441 )
2020-07-12 17:31:09 +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
b074e8b8d4
patch 8.2.1178: Vim9: filter function recognized as command modifier
...
Problem: Vim9: filter function recognized as command modifier, leading to a
crash.
Solution: Clear cmdmod after freeing items. Do not recognize a command
modifier followed by non-white space. (closes #6434 )
2020-07-11 13:40:45 +02:00
Bram Moolenaar
543e6f3467
patch 8.2.1176: Vim9: not enough type checking in Vim9 script
...
Problem: Vim9: not enough type checking in Vim9 script.
Solution: Use same type checking as in a :def function.
2020-07-10 22:45:38 +02:00
Bram Moolenaar
a7eedf317a
patch 8.2.1175: Vim9: cannot split a line before ".member"
...
Problem: Vim9: Cannot split a line before ".member".
Solution: Check for ".member" after line break.
2020-07-10 21:50:41 +02:00
Bram Moolenaar
389df259c4
patch 8.2.1167: Vim9: builtin function method call only supports first arg
...
Problem: Vim9: builtin function method call only supports first argument.
Solution: Shift arguments when needed. (closes #6305 , closes #6419 )
2020-07-09 21:20:47 +02:00
Bram Moolenaar
8e2730a315
patch 8.2.1161: Vim9: using freed memory
...
Problem: Vim9: using freed memory.
Solution: Put pointer back in evalarg instead of freeing it.
2020-07-08 22:01:49 +02:00
Bram Moolenaar
6110e79a58
patch 8.2.1160: Vim9: memory leak in allocated types
...
Problem: Vim9: memory leak in allocated types.
Solution: Free the type pointers.
2020-07-08 19:35:21 +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
002262f4de
patch 8.2.1156: Vim9: No error for invalid command in compiled function
...
Problem: Vim9: No error for invalid command in compiled function.
Solution: Handle CMD_SIZE.
2020-07-08 17:47:57 +02:00
Bram Moolenaar
7a4b8980ea
patch 8.2.1155: Vim9: cannot handle line break inside lambda
...
Problem: Vim9: cannot handle line break inside lambda.
Solution: Pass the compilation context through. (closes #6407 , closes #6409 )
2020-07-08 17:36:21 +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
007f9d6ed5
patch 8.2.1149: Vim9: :eval command not handled properly
...
Problem: Vim9: :eval command not handled properly.
Solution: Compile the :eval command. (closes #6408 )
2020-07-06 23:04:49 +02:00
Bram Moolenaar
cbb6bdcd89
patch 8.2.1148: warning for using int instead of size_t
...
Problem: Warning for using int instead of size_t.
Solution: Change "len" argument to size_t. (Mike Williams)
2020-07-06 21:53:17 +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
Bram Moolenaar
47e7d70b58
patch 8.2.1137: Vim9: modifiers not cleared after compiling function
...
Problem: Vim9: modifiers not cleared after compiling function.
Solution: Clear command modifiers. (closes #6396 )
2020-07-05 18:18:42 +02:00
Bram Moolenaar
05a5551a86
patch 8.2.1131: Vim9: error message for returning a value is not clear
...
Problem: Vim9: error message for returning a value in a function that does
not return anything is not clear.
Solution: Add a specific message.
2020-07-05 15:52:19 +02:00
Bram Moolenaar
788123c00c
patch 8.2.1130: Vim9: bar not recognized after function call
...
Problem: Vim9: bar not recognized after function call
Solution: Skip whitespace. (closes #6391 )
2020-07-05 15:32:17 +02:00
Bram Moolenaar
e9f262bdff
patch 8.2.1129: Vim9: bar not recognized after not compiled command
...
Problem: Vim9: bar not recognized after not compiled command.
Solution: Check for bar for commands where this is possible. (closes #6391 )
2020-07-05 14:57:51 +02:00
Bram Moolenaar
1c991144c5
patch 8.2.1124: Vim9: no line break allowed in :import command
...
Problem: Vim9: no line break allowed in :import command.
Solution: Skip over line breaks.
2020-07-04 13:15:31 +02:00
Bram Moolenaar
9a78e6df17
patch 8.2.1111: inconsistent naming of get_list_tv() and eval_dict()
...
Problem: Inconsistent naming of get_list_tv() and eval_dict().
Solution: Rename get_list_tv() to eval_list(). Similarly for eval_number(),
eval_string(), eval_lit_string() and a few others.
2020-07-01 18:29:55 +02:00
Bram Moolenaar
086eb18ba1
patch 8.2.1109: still crashing when using s:variable
...
Problem: Still crashing when using s:variable.
Solution: Remove assignment. (Ken Takata)
2020-07-01 16:00:44 +02:00
Bram Moolenaar
8e6cbb7232
patch 8.2.1106: crash when trying to use s: variable in typed command
...
Problem: Crash when trying to use s: variable in typed command.
Solution: Don't use the script index when not set. (Ken Takata,
closes #6366 )
2020-07-01 14:38:12 +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
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
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
acd4c5e914
patch 8.2.1037: Vim9: crash when using line continuation inside :def
...
Problem: Vim9: crash when using line continuation inside :def.
Solution: Check for no more lines available.
2020-06-22 19:39:03 +02:00
Bram Moolenaar
38041da1c2
patch 8.2.1034: compiler warning for uninitialized variables
...
Problem: Compiler warning for uninitialized variables.
Solution: Add initializations. (John Marriott)
2020-06-21 22:17:18 +02:00
Bram Moolenaar
7fe875583b
patch 8.2.1032: error message for declaring a variable cannot be translated
...
Problem: Error message for declaring a variable cannot be translated.
Solution: Enclose in _(). Make environment variable a separate message.
2020-06-21 20:38:28 +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
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
280b0dc815
patch 8.2.1018: typo in enum value
...
Problem: Typo in enum value. (James McCoy)
Solution: Fix the typo.
2020-06-20 13:29:03 +02:00
Bram Moolenaar
7e380030c1
patch 8.2.1016: Vim9: test fails when channel feature is missing
...
Problem: Vim9: test fails when channel feature is missing.
Solution: Process an :if command when skipping
2020-06-19 22:35:44 +02:00