Skip to content

Commit 713f8ca

Browse files
authored
Merge pull request #2368 from h-east/update-if_perl
Update if_perl.{txt,jax}
2 parents 04a0318 + 72d7dea commit 713f8ca

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

doc/if_perl.jax

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_perl.txt* For Vim バージョン 9.1. Last change: 2025 Oct 12
1+
*if_perl.txt* For Vim バージョン 9.1. Last change: 2025 Oct 14
22

33

44
VIMリファレンスマニュアル by Sven Verdoolaege
@@ -17,11 +17,10 @@ Perl と Vim *perl* *Perl*
1717
1. Perl のファイルを編集する *perl-editing*
1818

1919
Vim の構文ハイライト(syntax highlighting)は Perl と POD のファイルもサポートし
20-
ています。Vim はファイルの拡張子が .pl か .pm であると、Perl のコードだと想定
21-
します。また、ファイルの拡張子によらず、Vim はファイルの1行目を調べてファイル
22-
が Perl スクリプトであるかどうか確認します(Vim の syntax ディレクトリにある
23-
scripts.vim を参照してください)。ファイルの拡張子が .POD であると、Vim は POD
24-
テキストであると想定します。
20+
ている。Vim はファイルの拡張子が .pl か .pm であると、Perl のコードだと想定
21+
する。Vimは、ファイルタイプが検出されなかった場合、ファイルの shebang 行も調べ
22+
て、ファイルが Perl スクリプトかどうかを確認する。ファイル名に .POD サフィック
23+
スが付いている場合、Vim はファイルが POD テキストであると想定する。
2524

2625
Perl でタグを使うには、Universal/Exuberant Ctags が必要です。ここを訪れてくだ
2726
さい:

en/if_perl.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_perl.txt* For Vim version 9.1. Last change: 2025 Oct 12
1+
*if_perl.txt* For Vim version 9.1. Last change: 2025 Oct 14
22

33

44
VIM REFERENCE MANUAL by Sven Verdoolaege
@@ -18,9 +18,9 @@ Perl and Vim *perl* *Perl*
1818

1919
Vim syntax highlighting supports Perl and POD files. Vim assumes a file is
2020
Perl code if the filename has a .pl or .pm suffix. Vim also examines the
21-
first line of a file, regardless of the filename suffix, to check if a file is
22-
a Perl script (see scripts.vim in Vim's syntax directory). Vim assumes a file
23-
is POD text if the filename has a .POD suffix.
21+
shebang line of a file, if no filetype has been detected, to check if a file
22+
is a Perl script. Vim assumes a file is POD text if the filename has a .POD
23+
suffix.
2424

2525
To use tags with Perl, you need Universal/Exuberant Ctags. Look here:
2626
Universal Ctags (preferred): https://ctags.io

0 commit comments

Comments
 (0)