22 |
[\|\-\-ignore\-indentation\|] [\|\-\-language=\fIlanguage\fP\|] |
[\|\-\-ignore\-indentation\|] [\|\-\-language=\fIlanguage\fP\|] |
23 |
[\|\-\-members\|] [\|\-\-output=\fItagfile\fP\|] |
[\|\-\-members\|] [\|\-\-output=\fItagfile\fP\|] |
24 |
[\|\-\-regex=\fIregexp\fP\|] [\|\-\-no\-regex\|] |
[\|\-\-regex=\fIregexp\fP\|] [\|\-\-no\-regex\|] |
|
[\|\-\-ignore\-case\-regex=\fIregexp\fP\|] |
|
25 |
[\|\-\-help\|] [\|\-\-version\|] |
[\|\-\-help\|] [\|\-\-version\|] |
26 |
\fIfile\fP .\|.\|. |
\fIfile\fP .\|.\|. |
27 |
|
|
35 |
[\|\-\-globals\|] [\|\-\-ignore\-indentation\|] |
[\|\-\-globals\|] [\|\-\-ignore\-indentation\|] |
36 |
[\|\-\-language=\fIlanguage\fP\|] [\|\-\-members\|] |
[\|\-\-language=\fIlanguage\fP\|] [\|\-\-members\|] |
37 |
[\|\-\-output=\fItagfile\fP\|] [\|\-\-regex=\fIregexp\fP\|] |
[\|\-\-output=\fItagfile\fP\|] [\|\-\-regex=\fIregexp\fP\|] |
|
[\|\-\-ignore\-case\-regex=\fIregexp\fP\|] |
|
38 |
[\|\-\-typedefs\|] [\|\-\-typedefs\-and\-c++\|] |
[\|\-\-typedefs\|] [\|\-\-typedefs\-and\-c++\|] |
39 |
[\|\-\-update\|] [\|\-\-no\-warn\|] |
[\|\-\-update\|] [\|\-\-no\-warn\|] |
40 |
[\|\-\-help\|] [\|\-\-version\|] |
[\|\-\-help\|] [\|\-\-version\|] |
147 |
\fBtags\fP. (But ignored with \fB\-v\fP or \fB\-x\fP.) |
\fBtags\fP. (But ignored with \fB\-v\fP or \fB\-x\fP.) |
148 |
.TP |
.TP |
149 |
\fB\-r\fP \fIregexp\fP, \fB\-\-regex=\fIregexp\fP |
\fB\-r\fP \fIregexp\fP, \fB\-\-regex=\fIregexp\fP |
150 |
.TP |
|
151 |
\fB\-\-ignore\-case\-regex=\fIregexp\fP |
Make tags based on regexp matching for the files following this option, |
152 |
Make tags based on regexp matching for each line of the files |
in addition to the tags made with the standard parsing based on |
153 |
following this option, in addition to the tags made with the standard |
language. May be freely intermixed with filenames and the \fB\-R\fP |
154 |
parsing based on language. When using \fB\-\-regex\fP, case is |
option. The regexps are cumulative, i.e. each such option will add to |
155 |
significant, while it is not with \fB\-\-ignore\-case\-regex\fP. May |
the previous ones. The regexps are of the form: |
|
be freely intermixed with filenames and the \fB\-R\fP option. The |
|
|
regexps are cumulative, i.e. each option will add to the previous |
|
|
ones. The regexps are of the form: |
|
156 |
.br |
.br |
157 |
\fB/\fP\fItagregexp\fP[\fB/\fP\fInameregexp\fP]\fB/\fP |
\fB/\fP\fItagregexp/\fP[\fInameregexp\fP\fB/\fP]\fImodifiers\fP |
158 |
.br |
.br |
159 |
|
|
160 |
where \fItagregexp\fP is used to match the lines that must be tagged. |
where \fItagregexp\fP is used to match the tag. It should not match |
161 |
It should not match useless characters. If the match is |
useless characters. If the match is such that more characters than |
162 |
such that more characters than needed are unavoidably matched by |
needed are unavoidably matched by \fItagregexp\fP, it may be useful to |
163 |
\fItagregexp\fP, it may be useful to add a \fInameregexp\fP, to |
add a \fInameregexp\fP, to narrow down the tag scope. \fBctags\fP |
164 |
narrow down the tag scope. \fBctags\fP ignores regexps without a |
ignores regexps without a \fInameregexp\fP. The syntax of regexps is |
165 |
\fInameregexp\fP. The syntax of regexps is the same as in emacs. |
the same as in emacs. The following character escape sequences are |
166 |
The following character escape sequences are supported: |
supported: \\a, \\b, \\d, \\e, \\f, \\n, \\r, \\t, \\v, which |
167 |
\\a, \\b, \\d, \\e, \\f, \\n, \\r, \\t, \\v. |
respectively stand for the ASCII characters BEL, BS, DEL, ESC, FF, NL, |
168 |
|
CR, TAB, VT. |
169 |
|
.br |
170 |
|
The \fImodifiers\fP are a sequence of 0 or more characters among |
171 |
|
\fIi\fP, which means to ignore case when matching; \fIm\fP, which means |
172 |
|
that the \fItagregexp\fP will be matched against the whole file contents |
173 |
|
at once, rather than line by line, and the matching sequence can match |
174 |
|
multiple lines; and \fIs\fP, which implies \fIm\fP and means that the |
175 |
|
dot character in \fItagregexp\fP matches the newline char as well. |
176 |
|
|
177 |
.br |
.br |
178 |
Here are some examples. All the regexps are quoted to protect them |
Here are some examples. All the regexps are quoted to protect them |