Bram Moolenaar
65259b5c6a
patch 8.2.3656: Vim9: no error for an evironment variable by itself
...
Problem: Vim9: no error for an evironment variable by itself.
Solution: Give a "without effect" error. (closes #9166 )
2021-11-23 14:52:06 +00:00
Bram Moolenaar
04b568b38f
patch 8.2.3651: Vim9: no error for :lock or :unlock with unknown variable
...
Problem: Vim9: no error for :lock or :unlock with unknown variable.
Solution: Give an error. (closes #9188 )
2021-11-22 21:58:41 +00:00
Bram Moolenaar
7d5b8becc3
patch 8.2.3645: Vim9: The "no effect" error is not given for all registers
...
Problem: Vim9: The "no effect" error is not given for all registers.
Solution: Include any character following '@'. (closes #8779 )
2021-11-22 15:05:46 +00:00
Bram Moolenaar
c8a9fe541d
patch 8.2.3631: "syntax enable" does not work properly in Vim9 context
...
Problem: "syntax enable" does not work properly in Vim9 context.
Solution: Also handle Vim9 context. (closes #9161 )
2021-11-20 19:50:59 +00:00
Yegappan Lakshmanan
2a16dc6613
patch 8.2.3605: cannot clear and unlinke a highlight group with hlset()
...
Problem: Cannot clear and unlinke a highlight group with hlset() in a
single call.
Solution: Add the "force" option. (Yegappan Lakshmanan, closes #9117 )
2021-11-16 17:19:30 +00:00
Yegappan Lakshmanan
733b124a90
patch 8.2.3596: crash when using :pedit in Vim9 script
...
Problem: Crash when using :pedit in Vim9 script.
Solution: Move check for arguments to after checking there are arguments.
(Yegappan Lakshmanan, closes #9134 , closes #9135 )
2021-11-15 11:22:09 +00:00
Bram Moolenaar
051a8a375f
patch 8.2.3508: Vim9: bad separators for "g" and "s" insufficiently tested
...
Problem: Vim9: bad separators for "g" and "s" insufficiently tested.
Solution: Add a few more test cases.
2021-10-14 16:53:42 +01:00
Bram Moolenaar
c0abac67d7
patch 8.2.3506: Vim9: special cases for "g" and "s" insufficiently tested
...
Problem: Vim9: special cases for "g" and "s" insufficiently tested.
Solution: Add a few more test cases.
2021-10-13 21:17:05 +01:00
Bram Moolenaar
7b82926892
patch 8.2.3503: Vim9: using g:pat:cmd is confusing
...
Problem: Vim9: using g:pat:cmd is confusing.
Solution: Do not recognize g: as the :global command. Also for s:pat:repl.
(closes #8982 )
2021-10-13 15:04:34 +01:00
Bram Moolenaar
4799cef85c
patch 8.2.3376: Vim9: no warning that "@r" does not do anything
...
Problem: Vim9: no warning that "@r" does not do anything.
Solution: Give a "no effect" error. (closes #8779 )
2021-08-25 22:37:36 +02:00
Bram Moolenaar
5ca5cc6412
patch 8.2.3371: Vim9: :$ENV cannot be followed by ->func() in next line
...
Problem: Vim9: :$ENV cannot be followed by ->func() in next line.
Solution: Use "$ENV" as the start of an expression. (closes #8790 )
2021-08-24 21:56:03 +02:00
Bram Moolenaar
73170917f1
patch 8.2.3367: Vim9: :@r executing a register is inconsistent
...
Problem: Vim9: :@r executing a register is inconsistent.
Solution: Use "@r" as the start of an expression. (issue #8779 )
2021-08-22 22:44:11 +02:00
Bram Moolenaar
bf5f287833
patch 8.2.3365: Vim9: cannot use option for all operations
...
Problem: Vim9: cannot use option for all operations.
Solution: Recognize more operations. (closes #8779 )
2021-08-21 20:50:35 +02:00
Bram Moolenaar
dd9de50f42
patch 8.2.3347: check for legacy script is incomplete
...
Problem: Check for legacy script is incomplete. (Naohiro Ono)
Solution: Also check the :legacy modifier. Use for string concatenation
with "." and others (issue #8756 )
2021-08-15 13:49:42 +02:00
Bram Moolenaar
2596a4e763
patch 8.2.3346: Vim9: no error for using "." for concatenation after ":vim9cmd"
...
Problem: Vim9: no error for using "." for concatenation after ":vim9cmd".
(Naohiro Ono)
Solution: Check for Vim9 script syntax. (closes #8756 )
2021-08-14 21:35:40 +02:00
Bram Moolenaar
aacc966c5d
patch 8.2.3339: Vim9: cannot lock a member in a local dict
...
Problem: Vim9: cannot lock a member in a local dict.
Solution: Get the local dict from the stack and pass it to get_lval().
2021-08-13 19:40:51 +02:00
Bram Moolenaar
917c46abe5
patch 8.2.3324: Vim9: Cannot use :silent with :endwhile
...
Problem: Vim9: Cannot use :silent with :endwhile.
Solution: Allow for using the :silent modifier. (closes #8737 )
2021-08-10 19:53:01 +02:00
Bram Moolenaar
2c70711e3f
patch 8.2.3279: Vim9: cannot use block in cmdline window
...
Problem: Vim9: cannot use block in cmdline window.
Solution: Add EX_CMDWIN to the CMD_block flags. (closes #8689 )
2021-08-02 22:26:56 +02:00
Bram Moolenaar
678b207fb1
patch 8.2.3224: cannot call script-local function after :vim9cmd
...
Problem: Cannot call script-local function after :vim9cmd. (Christian J.
Robinson)
Solution: Skip over "<SNR>123".
2021-07-26 21:10:11 +02:00
Bram Moolenaar
e729ce294f
patch 8.2.2955: Vim9: using filter in compiled command does not work
...
Problem: Vim9: using filter in compiled command does not work.
Solution: Generate EXEC including the command modifier.
2021-06-06 21:38:09 +02:00
Bram Moolenaar
2752360646
patch 8.2.2946: Vim9: substitute expression cannot be a List
...
Problem: Vim9: substitute expression cannot be a List in a :def function.
Solution: Use typval2string(). (closes #8330 )
2021-06-05 21:36:19 +02:00
Bram Moolenaar
b288ba9f1d
patch 8.2.2941: Vim9: using does not handle a list of strings
...
Problem: Vim9: using does not handle a list of strings.
Solution: Convert a list to a string and escape each item. (closes #8310 )
2021-06-05 17:10:55 +02:00
Bram Moolenaar
68db996b62
patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void
...
Problem: Vim9: "echo Func()" does not give an error for a function without
a return value.
Solution: Give an error. Be more specific about why a value is invalid.
2021-05-09 23:19:22 +02:00
Dominique Pelle
6d37e8e3ba
patch 8.2.2837: various code lines not covered by tests
...
Problem: Various code lines not covered by tests.
Solution: Add test cases. (Dominique Pellé, closes #8178 )
2021-05-06 17:36:55 +02:00
Bram Moolenaar
5930ddcd25
patch 8.2.2812: Vim9: still crash when using substitute expression
...
Problem: Vim9: still crash when using substitute expression.
Solution: Put the instruction list in the stack frame. (closes #8154 )
2021-04-26 20:32:59 +02:00
Bram Moolenaar
b98cec28d9
patch 8.2.2811: Vim9: error for missing white space doesn't say where
...
Problem: Vim9: error for missing white space doesn't say where it is
missing
Solution: Mention the command. (closes #8149 )
2021-04-25 16:35:55 +02:00
Bram Moolenaar
d386e923c7
patch 8.2.2810: Vim9: crash when calling a function in a substitute expression
...
Problem: Vim9: crash when calling a function in a substitute expression.
Solution: Set the instructions back to the substitute expression
instrunctions. (closes #8148 )
2021-04-25 14:48:49 +02:00
Bram Moolenaar
a369c3d9c1
patch 8.2.2798: Vim9: redir to variable with append does not accept an index
...
Problem: Vim9: redir to variable with append does not accept an index.
Solution: Make the appending work.
2021-04-21 16:00:10 +02:00
Bram Moolenaar
753bcf8c7d
patch 8.2.2796: Vim9: redir to variable does not accept an index
...
Problem: Vim9: redir to variable does not accept an index.
Solution: Make the index work.
2021-04-21 14:24:24 +02:00
Bram Moolenaar
8238f08838
patch 8.2.2789: Vim9: using \=expr in :substitute does not handle jumps
...
Problem: Vim9: using \=expr in :substitute does not handle jumps.
Solution: Start with instruction count zero. (closes #8128 )
2021-04-20 21:10:48 +02:00
Bram Moolenaar
2d1c57ed3d
patch 8.2.2785: Vim9: cannot redirect to local variable
...
Problem: Vim9: cannot redirect to local variable.
Solution: Compile :redir when redirecting to a variable.
2021-04-19 20:50:03 +02:00
Bram Moolenaar
4c13721482
patch 8.2.2784: Vim9: cannot use \=expr in :substitute
...
Problem: Vim9: cannot use \=expr in :substitute.
Solution: Compile the expression into instructions and execute them when
invoked.
2021-04-19 16:48:48 +02:00
Bram Moolenaar
b2cb6c8bbd
patch 8.2.2672: Vim9: cannot use :lockvar and :unlockvar in compiled script
...
Problem: Vim9: cannot use :lockvar and :unlockvar in compiled script.
Solution: Implement locking support.
2021-03-28 20:38:34 +02:00
Bram Moolenaar
fa984418e7
patch 8.2.2652: Vim9: can use command modifier without an effect
...
Problem: Vim9: can use command modifier without an effect.
Solution: Give an error for a misplaced command modifier. Fix error message
number.
2021-03-25 22:15:28 +01:00
Bram Moolenaar
1ff89deeaa
patch 8.2.2649: Vim9: some wincmd arguments cause a white space error
...
Problem: Vim9: some wincmd arguments cause a white space error.
Solution: Insert a space before the count. (closes #8001 )
2021-03-24 20:08:12 +01:00
Bram Moolenaar
77b10ffad4
patch 8.2.2603: Vim9: no effect if user command is also a function
...
Problem: Vim9: no effect if user command is also a function.
Solution: Check for paren following. (closes #7960 )
2021-03-14 13:21:35 +01:00
Bram Moolenaar
6914e87d3c
patch 8.2.2575: Vim9: a function name with "->" in the next line doesn't work
...
Problem: Vim9: a function name with "->" in the next line doesn't work.
Solution: Recognize a function name by itself. (closes #7770 )
2021-03-06 21:01:09 +01:00
Bram Moolenaar
2e2d758902
patch 8.2.2566: Vim9: Function name is not recognized
...
Problem: Vim9: Function name is not recognized.
Solution: Change lookup_scriptvar() to also find function names.
(closes #7770 )
2021-03-03 21:22:41 +01:00
Bram Moolenaar
e0890d678d
patch 8.2.2525: Vim9: only local variables checked for a name
...
Problem: Vim9: only local variables checked for a name.
Solution: Also check arguments and script variables. (closes #7838 )
2021-02-17 14:52:14 +01:00
Bram Moolenaar
39f3b14110
patch 8.2.2511: Vim9: cannot use Vim9 script syntax in some places
...
Problem: Vim9: cannot use Vim9 script syntax in some places.
Solution: Add the :vim9cmd command modifier. Incompatible: Makes ":vim9"
mean ":vim9cmd" instead of ":vim9script".
2021-02-14 12:57:36 +01:00
Bram Moolenaar
148be9bc1c
patch 8.2.2453: Vim9: a variable name with "->" in the next line doesn't work
...
Problem: Vim9: a variable name with "->" in the next line doesn't work.
Solution: Recognize a variable name by itself. (closes #7770 )
2021-02-02 21:33:52 +01:00
Bram Moolenaar
dfbc5fd879
patch 8.2.2397: Vim9: "%%" not seen as alternate file name for ":bdel"
...
Problem: Vim9: "%%" not seen as alternate file name for commands with a
buffer name argument.
Solution: Recognize "%%" like "#". (closes #7732 )
2021-01-23 15:15:01 +01:00
Bram Moolenaar
7cebe8ba7d
patch 8.2.2396: Vim9: no white space allowed before "->"
...
Problem: Vim9: no white space allowed before "->".
Solution: Allow for white space. (closes #7725 )
2021-01-23 14:22:16 +01:00
Bram Moolenaar
a28639e711
patch 8.2.2377: Vim9: crash when using a range after another expression
...
Problem: Vim9: crash when using a range after another expression.
Solution: Set the variable type to number. Fix using :put with a range and
the "=" register. (closes #7706 )
2021-01-19 22:48:09 +01:00
Bram Moolenaar
883cf97f10
patch 8.2.2356: Vim9: ":put =expr" does not handle a list properly
...
Problem: Vim9: ":put =expr" does not handle a list properly.
Solution: Use the same logic as eval_to_string_eap(). (closes #7684 )
2021-01-15 18:04:43 +01:00
Bram Moolenaar
9567efa1b4
patch 8.2.2332: Vim9: missing :endif not reported when using :windo
...
Problem: Vim9: missing :endif not reported when using :windo.
Solution: Pass a getline function to do_cmdline(). (closes #7650 )
2021-01-11 22:16:30 +01:00
Bram Moolenaar
ece0b87c0f
patch 8.2.2313: Vim9: using uninitialized field when parsing range
...
Problem: Vim9: using uninitialized field when parsing range. ":silent!" not
respected when parsing range fails.
Solution: Initialize ea.skip. On pattern failure handle it like an error.
(closes #7636 )
2021-01-08 20:40:45 +01:00
Bram Moolenaar
ecac591cce
patch 8.2.2303: Vim9: backtick expansion doesn't work for :foldopen
...
Problem: Vim9: backtick expansion doesn't work for :foldopen.
Solution: Do recognize backtick expansion. (closes #7621 )
2021-01-05 19:23:28 +01:00
Bram Moolenaar
d1510ee946
patch 8.2.2299: Vim9: invalid memory access making error message flaky
...
Problem: Vim9: invalid memory access making error message flaky.
Solution: Do not check cmd_argt for CMD_USER. (issue #7467 )
2021-01-04 16:15:58 +01:00
Bram Moolenaar
a11919fa44
patch 8.2.2281: Vim9: compiled "wincmd" cannot be followed by bar
...
Problem: Vim9: compiled "wincmd" cannot be followed by bar.
Solution: Check for bar after "wincmd". (closes #7599 )
2021-01-02 19:44:56 +01:00