Skip to content

Commit a770e54

Browse files
authored
Merge pull request #1489 from vim-jp/hh-update-vim9
Update vim9.{txt,jax}
2 parents b44016d + 7a15f11 commit a770e54

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

doc/vim9.jax

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vim9.txt* For Vim バージョン 9.1. Last change: 2024 Jan 12
1+
*vim9.txt* For Vim バージョン 9.1. Last change: 2024 Apr 13
22

33
VIMリファレンスマニュアル by Bram Moolenaar
44

@@ -647,6 +647,14 @@ OKです: >
647647
ブロックはユーザーコマンドを定義するのにも使えます。ブロックの内側では Vim9
648648
script の文法が使われます。
649649

650+
これはヒアドキュメントの使用例です: >
651+
com SomeCommand {
652+
g:someVar =<< trim eval END
653+
ccc
654+
ddd
655+
END
656+
}
657+
650658
もしブロックが辞書を含むのであれば、辞書の閉じカッコは行頭に書かれてはいけませ
651659
ん。さもなくば閉じカッコがブロックの終了としてパースされてしまいます。これは動
652660
作しません: >
@@ -1519,7 +1527,6 @@ func({type}, ?{type}, ...list<{type}>): {type}
15191527
:type MyList list<string>
15201528
ユーザー関数と似たように、後から追加される組み込み型との名前の衝突を避けるた
15211529
め、カスタム型は大文字から始まらなければなりません。
1522-
{not implemented yet}
15231530

15241531
そしてクラスとインターフェイスも型として使えます: >
15251532
:class MyClass

en/vim9.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vim9.txt* For Vim version 9.1. Last change: 2024 Jan 12
1+
*vim9.txt* For Vim version 9.1. Last change: 2024 Apr 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -641,6 +641,14 @@ No command can follow the "{", only a comment can be used there.
641641
The block can also be used for defining a user command. Inside the block Vim9
642642
syntax will be used.
643643

644+
This is an example of using here-docs: >
645+
com SomeCommand {
646+
g:someVar =<< trim eval END
647+
ccc
648+
ddd
649+
END
650+
}
651+
644652
If the statements include a dictionary, its closing bracket must not be
645653
written at the start of a line. Otherwise, it would be parsed as the end of
646654
the block. This does not work: >
@@ -1513,7 +1521,6 @@ Custom types can be defined with `:type`: >
15131521
:type MyList list<string>
15141522
Custom types must start with a capital letter, to avoid name clashes with
15151523
builtin types added later, similarly to user functions.
1516-
{not implemented yet}
15171524

15181525
And classes and interfaces can be used as types: >
15191526
:class MyClass

0 commit comments

Comments
 (0)