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

Update pattern.{txt,jax} #2016

Merged
merged 1 commit into from
Apr 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions doc/pattern.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*pattern.txt* For Vim バージョン 9.1. Last change: 2025 Mar 21
*pattern.txt* For Vim バージョン 9.1. Last change: 2025 Mar 28


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -1203,12 +1203,13 @@ x 特別な意味のない文字は、その文字自身とマッチします
\t <Tab>
\r <CR> (改行文字ではありません)
\b <BS>
\n 改行。|/[\n]| 参照。
\d123 10進数の文字番号
\o40 8 進数の文字番号 (最大値 0o377)
\x20 16進数の文字番号 (最大値 0xff)
\u20AC 16進数のマルチバイト文字番号 (最大値 0xffff)
\U1234 16進数のマルチバイト文字番号 (最大値 0xffffffff)
\n 改行。上記 |/[\n]| 参照。
\d123 10 進数の文字番号
\o40 0o377 までの 8 進数の文字番号
\x20 0xff までの 16 進数の文字番号
\u20AC 16 進数。0xffff までのマルチバイト文字番号
\U1234 16 進数。最大 8 文字 0xffffffff のマルチバイト文字番号
|E1541|
NOTE: 他のバックスラッシュによる特殊文字の表記は、[] の中では機能し
ません。
- コレクションを使ったマッチングは遅くなることがあります。コレクション
Expand Down Expand Up @@ -1248,6 +1249,8 @@ x 特別な意味のない文字は、その文字自身とマッチします
\%x2a 16進数で指定した文字にマッチします。2桁まで。
\%u20AC 16進数で指定した文字にマッチします。4桁まで。
\%U1234abcd 16進数で指定した文字にマッチします。8桁まで。0x7fffffff まで。
(許容される最大値は INT_MAX |E1541| ですが、有効な Unicode コードポイ
ントの最大値は U+10FFFF です)。

==============================================================================
7. 大文字と小文字を無視する */ignorecase*
Expand Down
8 changes: 5 additions & 3 deletions en/pattern.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*pattern.txt* For Vim version 9.1. Last change: 2025 Mar 21
*pattern.txt* For Vim version 9.1. Last change: 2025 Mar 28


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1222,7 +1222,8 @@ x A single character, with no special meaning, matches itself
\o40 octal number of character up to 0o377
\x20 hexadecimal number of character up to 0xff
\u20AC hex. number of multibyte character up to 0xffff
\U1234 hex. number of multibyte character up to 0xffffffff
\U1234 hex. number of multibyte character up to 8 characters
0xffffffff |E1541|
NOTE: The other backslash codes mentioned above do not work inside
[]!
- Matching with a collection can be slow, because each character in
Expand Down Expand Up @@ -1263,7 +1264,8 @@ x A single character, with no special meaning, matches itself
\%u20AC Matches the character specified with up to four hexadecimal
characters.
\%U1234abcd Matches the character specified with up to eight hexadecimal
characters, up to 0x7fffffff
characters, up to 0x7fffffff (the maximum allowed value is INT_MAX
|E1541|, but the maximum valid Unicode codepoint is U+10FFFF).

==============================================================================
7. Ignoring case in a pattern */ignorecase*
Expand Down