File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1
- *pattern.txt* For Vim バージョン 9.1. Last change: 2023 Oct 23
1
+ *pattern.txt* For Vim バージョン 9.1. Last change: 2024 Apr 26
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1371,6 +1371,19 @@ Vim では、'^' と '$' は常に中間の改行にもマッチします。最
1371
1371
==============================================================================
1372
1372
10. マッチしたテキストを強調する *match-highlight*
1373
1373
1374
+ *syntax-vs-match*
1375
+ Note マッチハイライトのメカニズムは | syntax-highlighting | とは
1376
+ 独立していることに注意してください。これは (通常は) バッファ
1377
+ ローカルのハイライトですが、マッチングはウィンドウローカルであ
1378
+ り、両方の方法を自由に混合できます。マッチハイライト関数を使用
1379
+ すると、いつ、どのように適用するかについてもう少し柔軟性が得ら
1380
+ れますが、通常は厳密なルールがなく、一時的なハイライトにのみ使
1381
+ 用されます。どちらの方法もテキストを隠すために使用できます。
1382
+
1383
+ したがって、| matchadd() | のようなマッチング関数は、構文ルール
1384
+ や | syncconcealed() | のような関数を考慮しません。また、その逆
1385
+ も考慮されません。
1386
+
1374
1387
*:mat* *:match*
1375
1388
:mat[ch] {group} /{pattern} /
1376
1389
カレントウィンドウ内で強調表示するパターンを定義します。強調に
Original file line number Diff line number Diff line change 1
- *pattern.txt* For Vim version 9.1. Last change: 2023 Oct 23
1
+ *pattern.txt* For Vim version 9.1. Last change: 2024 Apr 26
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1394,6 +1394,19 @@ Finally, these constructs are unique to Perl:
1394
1394
==============================================================================
1395
1395
10. Highlighting matches *match-highlight*
1396
1396
1397
+ *syntax-vs-match*
1398
+ Note that the match highlight mechanism is independent
1399
+ of | syntax-highlighting | , which is (usually) a buffer-local
1400
+ highlighting, while matching is window-local, both methods
1401
+ can be freely mixed. Match highlighting functions give you
1402
+ a bit more flexibility in when and how to apply, but are
1403
+ typically only used for temporary highlighting, without strict
1404
+ rules. Both methods can be used to conceal text.
1405
+
1406
+ Thus the matching functions like | matchadd() | won't consider
1407
+ syntax rules and functions like | synconcealed() | and the
1408
+ other way around.
1409
+
1397
1410
*:mat* *:match*
1398
1411
:mat[ch] {group} /{pattern} /
1399
1412
Define a pattern to highlight in the current window. It will
You can’t perform that action at this time.
0 commit comments