Re: ctags for new Vim scripting features

2006-10-12 Thread Gary Johnson
On 2006-10-11, Hari Krishna Dara [EMAIL PROTECTED] wrote:
 On Wed, 11 Oct 2006 at 10:30pm, David Fishburn wrote:

   From: Hari Krishna Dara [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, October 11, 2006 9:18 PM

   Is anyone working or planning to work on enhancing exuberant
   ctags to recognize the dict and autoloaded functions ? Does
   this require modifying the code, or just some regex patterns?

  What language elements are you referring to?
  That would allow me to create a test case.

 What I see is that ctags fails to extract the right function name, in
 the below syntax (it basically reports dict and plug as functions):
 
 function! dict.func()
 function! plug#func()
 
 In my new plugins, most of the functions are these so I hardly get to
 make use of ctags.

As a workaround, you could create a ~/.ctags file and put something 
like this line in it:

--regex-Vim=/^[ \t]*function!?[ \t]+([a-zA-Z0-9_\.#]*)\(/\1/f,function/

That will include the dict. and plug# prefixes in the tag.  If 
you want only the func portion, that's easy to fix.

HTH,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
 | Spokane, Washington, USA


RE: ctags for new Vim scripting features

2006-10-11 Thread David Fishburn
 

 -Original Message-
 From: Hari Krishna Dara [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 11, 2006 9:18 PM
 To: vim@vim.org
 Subject: ctags for new Vim scripting features
 
 
 Is anyone working or planning to work on enhancing exuberant 
 ctags to recognize the dict and autoloaded functions ? Does 
 this require modifying the code, or just some regex patterns?

Exuberant tags has been under going some significant changes in the last
couple of months.  It has been moved to SVN and developers are being added
to the project.  Each of us volunteer for various components.

I maintain two of the modules (sql.c and jscript.c).  I am not sure if any
one has volunteered for vim.c.  I could probably take it on if there are no
other volunteers.  I have not noticed anything lacking in it to date (minus
any new 7.x features).

What language elements are you referring to?
That would allow me to create a test case.

Dave





RE: ctags for new Vim scripting features

2006-10-11 Thread Hari Krishna Dara

On Wed, 11 Oct 2006 at 10:30pm, David Fishburn wrote:



  -Original Message-
  From: Hari Krishna Dara [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, October 11, 2006 9:18 PM
  To: vim@vim.org
  Subject: ctags for new Vim scripting features
 
 
  Is anyone working or planning to work on enhancing exuberant
  ctags to recognize the dict and autoloaded functions ? Does
  this require modifying the code, or just some regex patterns?

 Exuberant tags has been under going some significant changes in the last
 couple of months.  It has been moved to SVN and developers are being added
 to the project.  Each of us volunteer for various components.

 I maintain two of the modules (sql.c and jscript.c).  I am not sure if any
 one has volunteered for vim.c.  I could probably take it on if there are no
 other volunteers.  I have not noticed anything lacking in it to date (minus
 any new 7.x features).

 What language elements are you referring to?
 That would allow me to create a test case.

 Dave

What I see is that ctags fails to extract the right function name, in
the below syntax (it basically reports dict and plug as functions):

function! dict.func()
function! plug#func()

In my new plugins, most of the functions are these so I hardly get to
make use of ctags.

-- 
Thanks,
Hari

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com