Bas van den Berg wrote:

> The least work would of course be to just generate a compatible tags file and 
> be done with it ;)
> But looking at the tags file, it seemed unable to distinguish between same 
> name variables that live closely together in the same source file, but refer 
> to different declarations, for example:
> ..
> 
> if (..) {
>   int a = 10;
>   a++;   // this 'a' refers to the one above
> }
> if (..) {
>    char* a = ..
> 
>   // any 'a' reference here refers to the char* a
> }
> 
> In my case, I definitely want to make this distinction. I'll look into the 
> tags format more closely,
> so see if it can indeed do this.
> 
> Thx for the replies!

Tags are used for names with a larger scope.  For variables with
function scope you can use "gd".  That usually works.  If you make
changes you probably have an outdated tags file anyway.

-- 
hundred-and-one symptoms of being an internet addict:
24. You realize there is not a sound in the house and you have no idea where
    your children are.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui