Re: [Ctags] macro and -I definition
Brought to you by:
dhiebert
From: Darren H. <dhi...@us...> - 2002-02-07 06:07:01
|
On Tue, 5 Feb 2002, Gary Holloway wrote: > I discovered this works!: > > --regex-c=/DEF_[A-Z]*_CMPD?_FUN\([ \t]*([a-zA-Z0-9_]*)[ \t]*,.*\)/\1/f,function\tfile:/ > > (Note the "\tfile:" in the replacement pattern.) Clever! > The tags file appears to be viable. Does it matter what order the "extensions" > are in (i.e., "language:C file:" vs. "file: language:C"? Not at all. > Is this totally abusing the --regex and/or exploiting a bug that > may get fixed, thus preventing this from working in a future > version? Yes, it is a complete hack, and not supported. I had never considered the possibility of someone doing this and trying to stop them. I doubt I will change this, though. So if it works for you now, go ahead. I won't deliberatly "break" it for you. > Oh, and my little trick with --regex only works when using using > full tag kinds (i.e., --fields=+K) As I expected when I saw your approach. -- Darren Hiebert <darren@DarrenHiebert.com> http://DarrenHiebert.com |