Re: v flags/modifiers in scripts/tags.sh

Masatake YAMATO
2014-08-17T15:05:21Z

On Sat, 16 Aug 2014 07:30:51 +0200, Dirk Gouders <dirk@gouders.net> wrote:
> Masatake YAMATO <yamato@redhat.com> writes:
>
>> Hi,
>>
>> I have a question about v flags/modifiers in scripts/tags.sh.
>>
>> quoted from scripts/tags.sh:
>>
>> exuberant()
>> {
>> ...
>> --regex-c='/DEFINE_(MUTEX|SEMAPHORE|SPINLOCK)\((\w*)/\2/v/' \
>> ...
>> }
>>
>> emacs()
>> {
>> ...
>> --regex='/DEFINE_HASHTABLE\((\w*)/\1/v/'
>> ...
>> }
>>
>>
>> v is specified at the end of the regular expressions.
>>
>> As far as I read the man pages of ctags and etags. there is no such
>> flags/modifiers. What is v?
>>
>> (I am a co-maintainer of fishman-ctags, a fork of exuberant-ctags.
>> So I'm interested in implementing v flags in ctags if it is useful.)
>
> 'v' is called a 'kind-spec' in exuberant ctags/etags; the emacs
> incarnations don't know about it and actually produce warnings.
>
> As you are co-maintaining a fork of exuberant-ctags, I wonder if your
> fork probably already knows about kind-specs.

man ctags:
...
--regex-<LANG>=/regexp/replacement/[kind-spec/][flags]
The /regexp/replacement/ pair define a regular expression replacement pattern, similar in style to sed
...

I misunderstood it as a flag. I now understood it means variable.
Sorry for making noise.

Masatake YAMATO