From bee8f65125baab22adff4192b61726afa3cca682 Mon Sep 17 00:00:00 2001
From: h-east <h.east.727@gmail.com>
Date: Sun, 30 Mar 2025 20:00:05 +0900
Subject: [PATCH] Update pattern.{txt,jax}

---
 doc/pattern.jax | 17 ++++++++++-------
 en/pattern.txt  |  8 +++++---
 2 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/doc/pattern.jax b/doc/pattern.jax
index 73553e143..4f3c372ad 100644
--- a/doc/pattern.jax
+++ b/doc/pattern.jax
@@ -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
@@ -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: 他のバックスラッシュによる特殊文字の表記は、[] の中では機能し
 	  ません。
 	- コレクションを使ったマッチングは遅くなることがあります。コレクション
@@ -1248,6 +1249,8 @@ x	特別な意味のない文字は、その文字自身とマッチします
 \%x2a	16進数で指定した文字にマッチします。2桁まで。
 \%u20AC	16進数で指定した文字にマッチします。4桁まで。
 \%U1234abcd	16進数で指定した文字にマッチします。8桁まで。0x7fffffff まで。
+	(許容される最大値は INT_MAX |E1541| ですが、有効な Unicode コードポイ
+	ントの最大値は U+10FFFF です)。
 
 ==============================================================================
 7. 大文字と小文字を無視する					*/ignorecase*
diff --git a/en/pattern.txt b/en/pattern.txt
index f11040c4e..857a3e648 100644
--- a/en/pattern.txt
+++ b/en/pattern.txt
@@ -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
@@ -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
@@ -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*