Skip to content

Commit cc1c9b5

Browse files
authored
Merge pull request #1513 from vim-jp/hh-update-pattern
Update pattern.{txt,jax}
2 parents 08bad95 + 76839f3 commit cc1c9b5

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

doc/pattern.jax

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim バージョン 9.1. Last change: 2023 Oct 23
1+
*pattern.txt* For Vim バージョン 9.1. Last change: 2024 Apr 26
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1371,6 +1371,19 @@ Vim では、'^' と '$' は常に中間の改行にもマッチします。最
13711371
==============================================================================
13721372
10. マッチしたテキストを強調する *match-highlight*
13731373

1374+
*syntax-vs-match*
1375+
Note マッチハイライトのメカニズムは |syntax-highlighting| とは
1376+
独立していることに注意してください。これは (通常は) バッファ
1377+
ローカルのハイライトですが、マッチングはウィンドウローカルであ
1378+
り、両方の方法を自由に混合できます。マッチハイライト関数を使用
1379+
すると、いつ、どのように適用するかについてもう少し柔軟性が得ら
1380+
れますが、通常は厳密なルールがなく、一時的なハイライトにのみ使
1381+
用されます。どちらの方法もテキストを隠すために使用できます。
1382+
1383+
したがって、|matchadd()| のようなマッチング関数は、構文ルール
1384+
|syncconcealed()| のような関数を考慮しません。また、その逆
1385+
も考慮されません。
1386+
13741387
*:mat* *:match*
13751388
:mat[ch] {group} /{pattern}/
13761389
カレントウィンドウ内で強調表示するパターンを定義します。強調に

en/pattern.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1394,6 +1394,19 @@ Finally, these constructs are unique to Perl:
13941394
==============================================================================
13951395
10. Highlighting matches *match-highlight*
13961396

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+
13971410
*:mat* *:match*
13981411
:mat[ch] {group} /{pattern}/
13991412
Define a pattern to highlight in the current window. It will

0 commit comments

Comments
 (0)