Bram Moolenaar
51b6eb47b3
patch 8.2.1507: using malloc() directly
...
Problem: Using malloc() directly.
Solution: Use ALLOC_ONE(). Remove superfluous typecast. (Hussam al-Homsi,
closes #6768 )
2020-08-22 15:19:18 +02:00
Bram Moolenaar
ec65d77fa2
patch 8.2.1499: Vim9: error when using "$" with col()
...
Problem: Vim9: error when using "$" with col().
Solution: Reorder getting the column value. (closes #6744 )
2020-08-20 22:29:12 +02:00
Bram Moolenaar
825b54415f
patch 8.2.1494: missing change to calling eval_getline()
...
Problem: Missing change to calling eval_getline().
Solution: Change last argument.
2020-08-20 15:52:21 +02:00
Bram Moolenaar
aeb2bdd0de
patch 8.2.1482: Vim9: crash when using a nested lambda
...
Problem: Vim9: crash when using a nested lambda.
Solution: Do not clear the growarray when not evaluating. Correct pointer
when getting the next line. (closes #6731 )
2020-08-18 22:32:03 +02:00
Bram Moolenaar
e15eebd202
patch 8.2.1480: Vim9: skip expression in search() gives error
...
Problem: Vim9: skip expression in search() gives error.
Solution: use tv_get_bool() eval_expr_to_bool(). (closes #6729 )
2020-08-18 19:11:38 +02:00
Bram Moolenaar
021bda5671
patch 8.2.1473: items in a list given to :const can still be modified
...
Problem: Items in a list given to :const can still be modified.
Solution: Work like ":lockvar! name" but don't lock referenced items.
Make locking a blob work.
2020-08-17 21:07:22 +02:00
Bram Moolenaar
f923571ec1
patch 8.2.1468: Vim9: invalid error for missing white space
...
Problem: Vim9: invalid error for missing white space.
Solution: Don't skip over white space after index. (closes #6718 )
2020-08-16 18:42:53 +02:00
Bram Moolenaar
cc673e746a
patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
...
Problem: Vim9: cannot index or slice a variable with type "any".
Solution: Add runtime index and slice.
2020-08-16 17:33:35 +02:00
Bram Moolenaar
56acb0943e
patch 8.2.1465: Vim9: subscript not handled properly
...
Problem: Vim9: subscript not handled properly.
Solution: Adjust error message. Remove dead code. Disallow string to
number conversion in scripts.
2020-08-16 14:48:19 +02:00
Bram Moolenaar
ed5918771f
patch 8.2.1463: Vim9: list slice not supported yet
...
Problem: Vim9: list slice not supported yet.
Solution: Add support for list slicing.
2020-08-15 22:14:53 +02:00
Bram Moolenaar
11107bab7e
patch 8.2.1462: Vim9: string slice not supported yet
...
Problem: Vim9: string slice not supported yet.
Solution: Add support for string slicing.
2020-08-15 21:10:16 +02:00
Bram Moolenaar
e3c37d8ebf
patch 8.2.1461: Vim9: string indexes are counted in bytes
...
Problem: Vim9: string indexes are counted in bytes.
Solution: Use character indexes. (closes #6574 )
2020-08-15 18:39:05 +02:00
Bram Moolenaar
451c2e3536
patch 8.2.1460: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more messages into errors.h.
2020-08-15 16:33:28 +02:00
Bram Moolenaar
c9edd6b582
patch 8.2.1437: Vim9: 'statusline' is evaluated using Vim9 script syntax
...
Problem: Vim9: 'statusline' is evaluated using Vim9 script syntax.
Solution: Always use legacy script syntax.
2020-08-12 22:18:23 +02:00
Bram Moolenaar
418f1df547
patch 8.2.1435: Vim9: always converting to string for ".." leads to mistakes
...
Problem: Vim9: always converting to string for ".." leads to mistakes.
Solution: Only automatically convert simple types.
2020-08-12 21:34:49 +02:00
Bram Moolenaar
3e06a1e2a8
patch 8.2.1416: Vim9: boolean evaluation does not work as intended
...
Problem: Vim9: boolean evaluation does not work as intended.
Solution: Use tv2bool() in Vim9 script. (closes #6681 )
2020-08-10 21:57:54 +02:00
Bram Moolenaar
6e4cfffe80
patch 8.2.1412: Vim: not operator does not result in boolean
...
Problem: Vim: not operator does not result in boolean.
Solution: Make type depend on operator. (issue 6678) Fix using "false" and
"true" in Vim9 script.
2020-08-09 22:17:55 +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
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
bbd3e3c357
patch 8.2.1378: cannot put space between function name and paren
...
Problem: Cannot put space between function name and paren.
Solution: Allow this for backwards compatibility.
2020-08-06 11:23:36 +02:00
Bram Moolenaar
fdac71c507
patch 8.2.1372: Vim9: no error for missing white space around operator
...
Problem: Vim9: no error for missing white space around operator.
Solution: Check for white space around ? and :.
2020-08-05 12:44:41 +02:00
Bram Moolenaar
3c1c9fd94b
patch 8.2.1371: Vim9: no error for missing white space around operator
...
Problem: Vim9: no error for missing white space around operator.
Solution: Check for white space around && and ||.
2020-08-05 12:32:38 +02:00
Bram Moolenaar
ff1cd39cfe
patch 8.2.1368: Vim9: no error for missing white space around operator
...
Problem: Vim9: no error for missing white space around operator.
Solution: Check for white space around <, !=, etc.
2020-08-05 11:51:30 +02:00
Bram Moolenaar
b4caa163ff
patch 8.2.1367: Vim9: no error for missing white space around operator
...
Problem: Vim9: no error for missing white space around operator.
Solution: Check for white space around *, / and %.
2020-08-05 11:36:52 +02:00
Bram Moolenaar
bb1b5e24ec
patch 8.2.1365: Vim9: no error for missing white space around operator
...
Problem: Vim9: no error for missing white space around operator.
Solution: Check for white space. (closes #6618 )
2020-08-05 10:53:21 +02:00
Bram Moolenaar
6a25026262
patch 8.2.1361: error for white space after expression in assignment
...
Problem: Error for white space after expression in assignment.
Solution: Skip over white space. (closes #6617 )
2020-08-04 15:53:01 +02:00
Bram Moolenaar
f96e9dec63
patch 8.2.1360: stray error for white space after expression
...
Problem: Stray error for white space after expression.
Solution: Ignore trailing white space. (closes #6608 )
2020-08-03 22:39:28 +02:00
Bram Moolenaar
9d48956681
patch 8.2.1326: Vim9: skipping over white space after list
...
Problem: Vim9: skipping over white space after list.
Solution: Do not skip white space, a following [] would be misinterpreted.
(closes #6552 ) Fix a few side effects.
2020-07-30 20:08:50 +02:00
Bram Moolenaar
696ba23149
patch 8.2.1323: Vim9: invalid operators only rejected in :def function
...
Problem: Vim9: invalid operators only rejected in :def function.
Solution: Also reject them at script level. (closes #6564 )
2020-07-29 21:20:41 +02:00
Bram Moolenaar
b13ab99908
patch 8.2.1306: checking for first character of dict key is inconsistent
...
Problem: Checking for first character of dict key is inconsistent.
Solution: Add eval_isdictc(). (closes #6546 )
2020-07-27 21:43:28 +02:00
Bram Moolenaar
2d06bfde29
patch 8.2.1281: the "trailing characters" error can be hard to understand
...
Problem: The "trailing characters" error can be hard to understand.
Solution: Add the trailing characters to the message.
2020-07-23 17:16:18 +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
c71f36a889
patch 8.2.1263: Vim9: comperators use 'ignorecase' in Vim9 script
...
Problem: Vim9: comperators use 'ignorecase' in Vim9 script.
Solution: Ignore 'ignorecase'. Use true and false instead of 1 and 0.
(closes #6497 )
2020-07-21 21:31:00 +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
8c34ea54ad
patch 8.2.1205: Vim9: && and || work different when not compiled
...
Problem: Vim9: && and || work different when not compiled.
Solution: Keep the value.
2020-07-13 22:29:02 +02:00
Bram Moolenaar
5d2eb0fff0
patch 8.2.1204: Vim9: true and false not recognized in Vim9 script
...
Problem: Vim9: true and false not recognized in Vim9 script.
Solution: Recognize true and false.
2020-07-13 21:59:33 +02:00
Bram Moolenaar
3ac9c4701a
patch 8.2.1203: unused assignments in expression evaluation
...
Problem: Unused assignments in expression evaluation.
Solution: Move declarations and assignments to inner blocks where possible.
2020-07-13 21:28:03 +02:00
Bram Moolenaar
eb6880b6eb
patch 8.2.1190: Vim9: checking for Vim9 syntax is spread out
...
Problem: Vim9: checking for Vim9 syntax is spread out.
Solution: Use in_vim9script().
2020-07-12 17:07:05 +02:00
Bram Moolenaar
8af81d656a
patch 8.2.1189: Vim9: line continuation in lambda doesn't always work
...
Problem: Vim9: line continuation in lambda doesn't always work.
Solution: Do not use a local evalarg unless there isn't one. (closes #6439 )
2020-07-12 16:32:19 +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
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
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
962d721319
patch 8.2.1125: Vim9: double quote can be a string or a comment
...
Problem: Vim9: double quote can be a string or a comment.
Solution: Only support comments starting with # to avoid confusion.
2020-07-04 14:15:00 +02:00
Bram Moolenaar
442af2f89e
patch 8.2.1122: Vim9: line continuation in dict member not recognized
...
Problem: Vim9: line continuation in dict member not recognized.
Solution: Check for line continuation.
2020-07-03 21:09:52 +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
e6b5324e3a
patch 8.2.1110: Vim9: line continuation does not work in function arguments
...
Problem: Vim9: line continuation does not work in function arguments.
Solution: Pass "evalarg" to get_func_tv(). Fix seeing double quoted string
as comment.
2020-07-01 17:28:33 +02:00
Bram Moolenaar
e707c882b2
patch 8.2.1103: Coverity reports an unnecessary NULL check
...
Problem: Coverity reports an unnecessary NULL check.
Solution: Remove the check for NULL.
2020-07-01 13:07:37 +02:00
Bram Moolenaar
47e880d6c1
patch 8.2.1100: Vim9: cannot use line break in :execute argument
...
Problem: Vim9: cannot use line break in :execute, :echomsg and :echoerr
argument.
Solution: Check for line break.
2020-06-30 22:02:02 +02:00
Bram Moolenaar
37c8371195
patch 8.2.1099: Vim9: cannot use line break in :cexpr argument
...
Problem: Vim9: cannot use line break in :cexpr argument.
Solution: Check for line break.
2020-06-30 21:18:36 +02:00