Skip to content

Commit 8d1e960

Browse files
committed
Update tagsrch.{txt,jax}
1 parent 3d6b8a9 commit 8d1e960

File tree

2 files changed

+25
-21
lines changed

2 files changed

+25
-21
lines changed

doc/tagsrch.jax

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tagsrch.txt* For Vim バージョン 9.1. Last change: 2024 Mar 16
1+
*tagsrch.txt* For Vim バージョン 9.1. Last change: 2024 Aug 01
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -584,12 +584,12 @@ tags ファイルは次の 2 つの形式のどれかで構成されなければ
584584
Posixでは主に使われる行番号と検索コマンドのみ許可する。
585585
{term} ;" セミコロンとダブルクォートの2文字。これはViによってコメント
586586
とみなされ、続く文字列は無視される。以前のViとの互換性を保つた
587-
めにある。これは続くフィールドを無視する。例:
587+
めにある。これは続くフィールドを無視する。例: >
588588
APP file /^static int APP;$/;" v
589-
{tagaddress} が行番号または検索パターンではない場合、{term}
589+
< {tagaddress} が行番号または検索パターンではない場合、{term}
590590
|;" でなければならない。ここで、バーはコマンドを終了させる(バー
591591
を除く)。そして ;" はViに残りの行を無視させるために使われる。
592-
例:
592+
例: >
593593
APP file.c call cursor(3, 4)|;" v
594594
595595
{field} .. 任意のフィールドのリスト。各フィールドは次の書式を持つ:
@@ -607,7 +607,9 @@ tags ファイルは次の 2 つの形式のどれかで構成されなければ
607607

608608
':' を持たないフィールドがある。これはタグの一種である。
609609
"kind:" を先頭につけたものとして扱われる。
610-
kindsについては、それを提供するctagsのドキュメントを参照。
610+
上記の例では、これは "kind:v" (通常は変数) だった。生成される
611+
kinds については ctags のドキュメントを参照。ctags では
612+
`ctags --list-kinds` を使用できる。
611613

612614
現在Vimが認識できるその他のフィールドは "file:" (値はなし)だけ
613615
である。これはstaticタグに使われる。
@@ -643,24 +645,24 @@ Vimが認識するもう1つのタグはタグファイルのエンコーディ
643645

644646
コマンドは常に 'magic' がセットされない状態で実行される。検索パターンで使用で
645647
きる特殊文字は "^" (行頭) と "$" (<EOL>) だけである。|pattern|を参照すること。
646-
検索文字列中のバックスラッシュの前にはバックスラッシュをつけなければならないこ
647-
とに注意すること。これは以前のViと互換性がある。
648+
Note 検索文字列中のバックスラッシュの前にはバックスラッシュをつけなければなら
649+
ないことに注意すること。これは以前のViと互換性がある。
648650

649651
*E434* *E435*
650652
もしコマンドが普通の検索コマンド ("/" か "?" で始まり、終わる) であるならば、
651653
いくつかの特別な扱いをされる:
652654
- 検索はファイルの1行目から開始する。
653655
検索方向は "/" で前方、"?" で後方となる。
654-
'wrapscan' は問題にならず、いつもファイル全体を検索することに注意。
656+
Note 'wrapscan' は問題にならず、いつもファイル全体を検索することに注意。
655657
- 検索が失敗した場合は、大文字小文字を無視してもう一度検索する。それも失敗した
656-
場合には次の検索が行われる:
658+
場合には次の検索が行われる: >
657659
"^tagname[ \t]*("
658-
(タグの先頭に '^'、末尾に "[ \t]*(" が追加される)。関数名の検索の場合には、
660+
< (タグの先頭に '^'、末尾に "[ \t]*(" が追加される)。関数名の検索の場合には、
659661
これはカラム0の位置にある関数名を見つけるだろう。関数の引数がtagsファイルを
660662
作成したときから変更になったときなどに役立つだろう。この検索でも見つからない
661-
場合にはさらに次の検索が行われる:
663+
場合にはさらに次の検索が行われる: >
662664
"^[#a-zA-Z_].*\<tagname[ \t]*("
663-
この意味は: '#' もしくは識別子で始まり、空白文字と '(' が続くタグを含む行で
665+
< この意味は: '#' もしくは識別子で始まり、空白文字と '(' が続くタグを含む行で
664666
ある。これは型が先頭にあるマクロ名や関数名を見つけるだろう。
665667

666668

en/tagsrch.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tagsrch.txt* For Vim version 9.1. Last change: 2024 Mar 16
1+
*tagsrch.txt* For Vim version 9.1. Last change: 2024 Aug 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -588,12 +588,12 @@ ctags).
588588
{term} ;" The two characters semicolon and double quote. This is
589589
interpreted by Vi as the start of a comment, which makes the
590590
following be ignored. This is for backwards compatibility
591-
with Vi, it ignores the following fields. Example:
591+
with Vi, it ignores the following fields. Example: >
592592
APP file /^static int APP;$/;" v
593-
When {tagaddress} is not a line number or search pattern, then
593+
< When {tagaddress} is not a line number or search pattern, then
594594
{term} must be |;". Here the bar ends the command (excluding
595595
the bar) and ;" is used to have Vi ignore the rest of the
596-
line. Example:
596+
line. Example: >
597597
APP file.c call cursor(3, 4)|;" v
598598
599599
{field} .. A list of optional fields. Each field has the form:
@@ -611,7 +611,9 @@ ctags).
611611

612612
There is one field that doesn't have a ':'. This is the kind
613613
of the tag. It is handled like it was preceded with "kind:".
614-
See the documentation of ctags for the kinds it produces.
614+
In the above example, this was "kind:v" (typically variable).
615+
See the documentation of ctags for the kinds it produces, with
616+
ctags you can use `ctags --list-kinds` .
615617

616618
The only other field currently recognized by Vim is "file:"
617619
(with an empty value). It is used for a static tag.
@@ -656,14 +658,14 @@ If the command is a normal search command (it starts and ends with "/" or
656658
The direction of the search is forward for "/", backward for "?".
657659
Note that 'wrapscan' does not matter, the whole file is always searched.
658660
- If the search fails, another try is done ignoring case. If that fails too,
659-
a search is done for:
661+
a search is done for: >
660662
"^tagname[ \t]*("
661-
(the tag with '^' prepended and "[ \t]*(" appended). When using function
663+
< (the tag with '^' prepended and "[ \t]*(" appended). When using function
662664
names, this will find the function name when it is in column 0. This will
663665
help when the arguments to the function have changed since the tags file was
664-
made. If this search also fails another search is done with:
666+
made. If this search also fails another search is done with: >
665667
"^[#a-zA-Z_].*\<tagname[ \t]*("
666-
This means: A line starting with '#' or an identifier and containing the tag
668+
< This means: A line starting with '#' or an identifier and containing the tag
667669
followed by white space and a '('. This will find macro names and function
668670
names with a type prepended.
669671

0 commit comments

Comments
 (0)