Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vim9 script内のLambda式で複数行の辞書を記述できない #1393

Open
kat0h opened this issue Aug 28, 2022 · 2 comments
Open

Vim9 script内のLambda式で複数行の辞書を記述できない #1393

kat0h opened this issue Aug 28, 2022 · 2 comments

Comments

@kat0h
Copy link
Member

kat0h commented Aug 28, 2022

不具合の内容

NG

vim9script
var F2 = () => {
  var D = {
    hoge: "hoge"
  }
  return D
}
echo F2()

=> E723

OK

var F2 = () => {
  var D = {
    hoge: "hoge"
  \}
  return D
}
echo F2()

複数行に渡らない辞書ならOK

期待動作

実行できる

Vimのバージョン

9.0 patch 140 (それ以降も含むと思います)

@kat0h
Copy link
Member Author

kat0h commented Aug 28, 2022

調査する予定です

@kat0h
Copy link
Member Author

kat0h commented Aug 28, 2022

バクダンくん
10:29
たぶん行頭に } があるのを見てオッ関数の終わりやな!ってなってる
関数同士は大丈夫っぽいけど辞書がネストできてないの

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant