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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 16 Aug 2014 07:30:51 +0200, Dirk Gouders <dirk@xxxxxxxxxxx> wrote:
> Masatake YAMATO <yamato@xxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux