aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Potortì1999-11-03 23:10:47 +0000
committerFrancesco Potortì1999-11-03 23:10:47 +0000
commitcaac7f2cb61520bd7119ca9925ed2b2dc87f2620 (patch)
tree7cdbfc64567825c9f54438bba77c4ba7fdde38ee
parent39cac3e78f3387c6ea06276d5dd56d9726e30163 (diff)
downloademacs-caac7f2cb61520bd7119ca9925ed2b2dc87f2620.tar.gz
emacs-caac7f2cb61520bd7119ca9925ed2b2dc87f2620.zip
Added wording for the regex files and the --ignore-case-regex option.
-rw-r--r--etc/etags.131
1 files changed, 24 insertions, 7 deletions
diff --git a/etc/etags.1 b/etc/etags.1
index 20d2a10b44f..735b187744e 100644
--- a/etc/etags.1
+++ b/etc/etags.1
@@ -21,6 +21,7 @@ etags, ctags \- generate tag file for Emacs, vi
21[\|\-\-ignore\-indentation\|] [\|\-\-language=\fIlanguage\fP\|] 21[\|\-\-ignore\-indentation\|] [\|\-\-language=\fIlanguage\fP\|]
22[\|\-\-members\|] [\|\-\-output=\fItagfile\fP\|] 22[\|\-\-members\|] [\|\-\-output=\fItagfile\fP\|]
23[\|\-\-regex=\fIregexp\fP\|] [\|\-\-no\-regex\|] 23[\|\-\-regex=\fIregexp\fP\|] [\|\-\-no\-regex\|]
24[\|\-\-ignore\-case\-regex=\fIregexp\fP\|]
24[\|\-\-help\|] [\|\-\-version\|] 25[\|\-\-help\|] [\|\-\-version\|]
25\fIfile\fP .\|.\|. 26\fIfile\fP .\|.\|.
26 27
@@ -33,6 +34,7 @@ etags, ctags \- generate tag file for Emacs, vi
33[\|\-\-globals\|] [\|\-\-ignore\-indentation\|] 34[\|\-\-globals\|] [\|\-\-ignore\-indentation\|]
34[\|\-\-language=\fIlanguage\fP\|] [\|\-\-members\|] 35[\|\-\-language=\fIlanguage\fP\|] [\|\-\-members\|]
35[\|\-\-output=\fItagfile\fP\|] [\|\-\-regex=\fIregexp\fP\|] 36[\|\-\-output=\fItagfile\fP\|] [\|\-\-regex=\fIregexp\fP\|]
37[\|\-\-ignore\-case\-regex=\fIregexp\fP\|]
36[\|\-\-typedefs\|] [\|\-\-typedefs\-and\-c++\|] 38[\|\-\-typedefs\|] [\|\-\-typedefs\-and\-c++\|]
37[\|\-\-update\|] [\|\-\-no\-warn\|] 39[\|\-\-update\|] [\|\-\-no\-warn\|]
38[\|\-\-help\|] [\|\-\-version\|] 40[\|\-\-help\|] [\|\-\-version\|]
@@ -142,14 +144,15 @@ Explicit name of file for tag table; overrides default `\|TAGS\|' or
142`\|tags\|'. (But ignored with \fB\-v\fP or \fB\-x\fP.) 144`\|tags\|'. (But ignored with \fB\-v\fP or \fB\-x\fP.)
143.TP 145.TP
144\fB\-r\fP \fIregexp\fP, \fB\-\-regex=\fIregexp\fP 146\fB\-r\fP \fIregexp\fP, \fB\-\-regex=\fIregexp\fP
145Make tags based on regexp matching for each line of the files 147\fB\-\-ignore\-case\-regex=\fIregexp\fP\
146following this option, in addition to the tags made with the standard 148Make tags based on regexp matching for each line of the files following
147parsing based on language. May be freely intermixed with filenames 149this option, in addition to the tags made with the standard parsing based
148and the \fB\-R\fP option. The regexps are cumulative, i.e. each 150on language. When using \-\-regex, case is significant, while it is not
149option will add to the previous ones. The regexps are of the form: 151with \-\-ignore\-case\-regex. May be freely intermixed with filenames and
152the \fB\-R\fP option. The regexps are cumulative, i.e. each option will
153add to the previous ones. The regexps are of the form:
150.br 154.br
151 155 \fB/\fP\fItagregexp\fP[\fB/\fP\fInameregexp\fP]\fB/\fP
152 \fB/\fP\fItagregexp\fP[\fB/\fP\fInameregexp\fP]\fB/\fP
153.br 156.br
154 157
155where \fItagregexp\fP is used to match the lines that must be tagged. 158where \fItagregexp\fP is used to match the lines that must be tagged.
@@ -182,6 +185,20 @@ Tag TCL files (this last example shows the usage of a \fItagregexp\fP):
182.br 185.br
183\fI\-\-lang\=none \-\-regex\='/proc[\ \\t]+\\([^\ \\t]+\\)/\\1/'\fP 186\fI\-\-lang\=none \-\-regex\='/proc[\ \\t]+\\([^\ \\t]+\\)/\\1/'\fP
184 187
188.br
189A regexp can be preceded by {lang}, thus restriciting it to match lines of
190files of the specified language. Use \fBetags --help\bP to obtain a list
191of the recognised languages. This feature is particularly useful inside
192\fBregex files\fB. A regex file contains one regex per line. Empty lines,
193and those lines beginning with space or tab are ignored. Lines beginning
194with @ are references to regex files whose name follows the @ sign. Other
195lines are considered regular expressions like those following \-\-regex.
196.br
197For example, the command
198.br
199etags \-\-regex=@regex.file *.c
200.br
201reads the regexes contained in the file regex.file.
185.TP 202.TP
186.B \-R, \-\-no\-regex 203.B \-R, \-\-no\-regex
187Don't do any more regexp matching on the following files. May be 204Don't do any more regexp matching on the following files. May be