# HG changeset patch # User Francesco Potort # Date 1023404291 0 # Node ID 621742dde467a4795688869e5fe4aa16f9dd9b6e # Parent 466c8ca0e543790a81235fcea995268ff7b43c37 Document Etags regexp char escape sequences. diff -r 466c8ca0e543 -r 621742dde467 etc/NEWS --- a/etc/NEWS Thu Jun 06 22:37:28 2002 +0000 +++ b/etc/NEWS Thu Jun 06 22:58:11 2002 +0000 @@ -593,6 +593,9 @@ will read from standard input and mark the produced tags as belonging to the file FILE. +*** Regular expressions can use char escape sequences as in Gcc +These are the escapes \a, \b, \d, \e, \f, \n, \r, \t, \v. + +++ ** The command line option --no-windows has been changed to --no-window-system. The old one still works, but is deprecated. diff -r 466c8ca0e543 -r 621742dde467 etc/etags.1 --- a/etc/etags.1 Thu Jun 06 22:37:28 2002 +0000 +++ b/etc/etags.1 Thu Jun 06 22:58:11 2002 +0000 @@ -168,6 +168,9 @@ \fItagregexp\fP, it may be useful to add a \fInameregexp\fP, to narrow down the tag scope. \fBctags\fP ignores regexps without a \fInameregexp\fP. The syntax of regexps is the same as in emacs. +The following character escape sequences are supported: +\\a, \\b, \\d, \\e, \\f, \\n, \\r, \\t, \\v. + .br Here are some examples. All the regexps are quoted to protect them from shell interpretation. diff -r 466c8ca0e543 -r 621742dde467 man/maintaining.texi --- a/man/maintaining.texi Thu Jun 06 22:37:28 2002 +0000 +++ b/man/maintaining.texi Thu Jun 06 22:58:11 2002 +0000 @@ -485,9 +485,30 @@ anchored, that is, it behaves as if preceded by @samp{^}. If you want to account for indentation, just match any initial number of blanks by beginning your regular expression with @samp{[ \t]*}. In the regular -expressions, @samp{\} quotes the next character, and @samp{\t} stands -for the tab character. Note that @code{etags} does not handle the other -C escape sequences for special characters. +expressions, @samp{\} quotes the next character, and all the +@code{gcc} character escape sequences are supported. Here is the list +of the character escape sequences: + +@table @samp +@item \a +BEL (bell). +@item \b +BS (back space). +@item \d +DEL (delete). +@item \e +ESC (delete). +@item \f +FF (form feed). +@item \n +NL (new line). +@item \r +CR (carriage return). +@item \t +TAB (horizontal tab). +@item \v +VT (vertical tab). +@end table The syntax of regular expressions in @code{etags} is the same as in Emacs. However, non-greedy operators and shy groups are not