comparison etc/etags.1 @ 45802:d4c9f3bd6dfa

New {language} and @regexp features.
author Francesco Potortì <pot@gnu.org>
date Thu, 13 Jun 2002 12:10:39 +0000
parents d11816fe2c59
children b2b7c9519909
comparison
equal deleted inserted replaced
45801:0cbd872ef18b 45802:d4c9f3bd6dfa
150 150
151 Make tags based on regexp matching for the files following this option, 151 Make tags based on regexp matching for the files following this option,
152 in addition to the tags made with the standard parsing based on 152 in addition to the tags made with the standard parsing based on
153 language. May be freely intermixed with filenames and the \fB\-R\fP 153 language. May be freely intermixed with filenames and the \fB\-R\fP
154 option. The regexps are cumulative, i.e. each such option will add to 154 option. The regexps are cumulative, i.e. each such option will add to
155 the previous ones. The regexps are of the form: 155 the previous ones. The regexps are of one of the forms:
156 .br 156 .br
157 \fB/\fP\fItagregexp/\fP[\fInameregexp\fP\fB/\fP]\fImodifiers\fP 157 [\fB{\fP\fIlanguage\fP\fB}\fP]\fB/\fP\fItagregexp/\fP[\fInameregexp\fP\fB/\fP]\fImodifiers\fP
158 .br
159 \fB@\fP\fIregexfile\fP
158 .br 160 .br
159 161
160 where \fItagregexp\fP is used to match the tag. It should not match 162 where \fItagregexp\fP is used to match the tag. It should not match
161 useless characters. If the match is such that more characters than 163 useless characters. If the match is such that more characters than
162 needed are unavoidably matched by \fItagregexp\fP, it may be useful to 164 needed are unavoidably matched by \fItagregexp\fP, it may be useful to
171 \fIi\fP, which means to ignore case when matching; \fIm\fP, which means 173 \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 174 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 175 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 176 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. 177 dot character in \fItagregexp\fP matches the newline char as well.
178 .br
179 cthe optional \fB{\fP\fIlanguage\fP\fB}\fP means that the tag should be
180 created only for files of language \fIlanguage\fP, and ignored
181 otherwise. This is particularly useful when storing many predefined
182 regexps in a file.
183 .br
184 In its second form, \fIregexfile\fP is the name of a file containing
185 regexps, one per line. Lines beginning with a space or tab are assumed
186 to be comments, and ignored.
176 187
177 .br 188 .br
178 Here are some examples. All the regexps are quoted to protect them 189 Here are some examples. All the regexps are quoted to protect them
179 from shell interpretation. 190 from shell interpretation.
180 .br 191 .br