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
Bram Moolenaar
efd8855594
patch 8.2.1006: Vim9: require unnecessary return statement
...
Problem: Vim9: require unnecessary return statement.
Solution: Improve the use of the had_return flag. (closes #6270 )
2020-06-18 20:50:10 +02:00
Bram Moolenaar
9b68c82b7c
patch 8.2.1005: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing
...
Problem: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing.
Solution: Use an enum value.
2020-06-18 19:31:08 +02:00
Bram Moolenaar
72abcf42d4
patch 8.2.1001: Vim9: crash with nested "if" and assignment
...
Problem: Vim9: crash with nested "if" and assignment.
Solution: Skip more of the assignment. Do not set ctx_skip when code is
reachable.
2020-06-18 18:26:24 +02:00
Bram Moolenaar
9af78769ee
patch 8.2.0987: Vim9: cannot assign to [var; var]
...
Problem: Vim9: cannot assign to [var; var].
Solution: Assign rest of items to a list.
2020-06-16 11:34:42 +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
25e0f5863e
patch 8.2.0823: Vim9: script reload test is disabled
...
Problem: Vim9: script reload test is disabled.
Solution: Compile a function in the context of the script where it was
defined. Set execution stack for compiled function. Add a test
that an error is reported for the right file/function.
2020-05-25 22:36:50 +02:00
Bram Moolenaar
45a1508a22
patch 8.2.0821: Vim9: memory leak in expr test
...
Problem: Vim9: memory leak in expr test.
Solution: Do not decrement the length of the list of functions if the
current function is not at the end.
2020-05-25 00:28:33 +02:00
Bram Moolenaar
6ff71d8b7f
patch 8.2.0820: Vim9: function type isn't set until compiled
...
Problem: Vim9: function type isn't set until compiled.
Solution: Set function type early.
2020-05-24 23:45:24 +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
a6e67e4f41
patch 8.2.0764: Vim9: assigning to option not fully tested
...
Problem: Vim9: assigning to option not fully tested.
Solution: Add more test cases. Allow using any type for assignment.
2020-05-15 23:36:40 +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
bc38f25c02
patch 8.2.0735: Vim9: using unitialized memory
...
Problem: Vim9: using unitialized memory.
Solution: Clear the arg_lvar field.
2020-05-10 23:20:06 +02:00
Bram Moolenaar
cb2bdb1c6d
patch 8.2.0733: Vim9: assigning to dict or list argument does not work
...
Problem: Vim9: assigning to dict or list argument does not work.
Solution: Recognize an argument as assignment target.
2020-05-10 22:53:56 +02:00
Bram Moolenaar
1cc2a94f80
patch 8.2.0730: Vim9: Assignment to dict member does not work
...
Problem: Vim9: Assignment to dict member does not work.
Solution: Parse dict assignment. Implement getting dict member.
2020-05-10 19:10:31 +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
1c74721233
patch 8.2.0723: Vim9: nested constant expression not evaluated compile time
...
Problem: Vim9: nested constant expression not evaluated compile time.
Solution: Use compile_expr1() for parenthesis.
2020-05-09 18:28:34 +02:00
Bram Moolenaar
7f14155f42
patch 8.2.0722: Vim9: not handling constant expression for elseif
...
Problem: Vim9: not handling constant expression for elseif.
Solution: Use postponed constants. Delete the code for evaluating a
constant expression.
2020-05-09 17:35:53 +02:00
Bram Moolenaar
497f76bfbf
patch 8.2.0721: Vim9: leaking memory when skipping
...
Problem: Vim9: leaking memory when skipping.
Solution: Disable skipping in generate_ppconst().
2020-05-09 16:44:22 +02:00