Re: [vim/vim] patch 8.1.1686: "*" of "*{" is recognized as multipy operator (2898ebb)

18 views
Skip to first unread message

mattn

unread,
Jul 14, 2019, 7:57:08 AM7/14/19
to vim/vim, Subscribed

As I mentioned in previous change, please stop implementing this. This is breaking compatibility.

let blue = "blue"
echo 2 *{blue: 3}.blue

Older vim output 6. But new vim output "2 3".


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub

FUJIWARA Takuya

unread,
Jul 14, 2019, 10:04:41 AM7/14/19
to vim/vim, Subscribed

I think scriptversion should be increased at least.
so Vim plugin authors who want to use the new syntax just write :scriptversion {nr},
while keeping backward compatibility.

Bram Moolenaar

unread,
Jul 14, 2019, 11:06:50 AM7/14/19
to vim/vim, Subscribed

> I think scriptversion should be increased at least.
> so Vim plugin authors who want to use the new syntax just write
> `:scriptversion {nr}`,
> while keeping backward compatibility.

This change is intended to be backwards compatible.
After 8.1.1686 it should be. Let me know if you spot a problem.

--
ARTHUR: Charge!
[They all charge with swords drawn towards the RABBIT. A tremendous twenty
second fight with Peckinpahish shots and borrowing heavily also on the
Kung Fu and karate-type films ensues, in which some four KNIGHTS are
comprehensively killed.]
ARTHUR: Run away! Run away!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

mattn

unread,
Jul 14, 2019, 11:36:02 AM7/14/19
to vim_dev

> This change is intended to be backwards compatible.
>
> After 8.1.1686 it should be. Let me know if you spot a problem.

As I mentioned in above, this break backward compatibility.

Bram Moolenaar

unread,
Jul 14, 2019, 12:13:40 PM7/14/19
to vim...@googlegroups.com, mattn
Ah, yes. It's weird syntax but it should keep working.

The alternative I can come up with is using ~{}.
Not intuitive, but it works.

Using &{} is also possible, but not better.

--
ROBIN: The what?
ARTHUR: The Holy Hand Grenade of Antioch. 'Tis one of the sacred relics
Brother Maynard always carries with him.
ALL: Yes. Of course.
ARTHUR: (shouting) Bring up the Holy Hand Grenade!
Reply all
Reply to author
Forward
0 new messages