#40 VIM7 Autoload and Class patch

open
None
7
2007-06-04
2006-08-23
No

Vim 7 has new features and especialy the autoload
feature and the new classes confuse ctags.

For that I propose the attached patch which autoload
functions and classes are detected.

The patch is based on vimtip#1276 [1] extended to
detect autoload (file#function) functions.

Martin

[1] http://www.vim.org/tips/tip.php?tip_id=1276

Discussion

  • Martin Krischik

    Martin Krischik - 2006-08-23

    VIM syntax patch

     
  • Martin Krischik

    Martin Krischik - 2006-08-23
    • priority: 5 --> 7
    • assigned_to: nobody --> dhiebert
     
  • David Fishburn

    David Fishburn - 2007-06-04
    • assigned_to: dhiebert --> dfishburn
     
  • David Fishburn

    David Fishburn - 2007-06-04

    Logged In: YES
    user_id=983517
    Originator: NO

    I will have a look at this patch, I am maitaining the Vim parser now.

     
  • David Fishburn

    David Fishburn - 2007-06-06

    Logged In: YES
    user_id=983517
    Originator: NO

    I have looked at your patch. The recent changes already handle the new autoload feature of Vim7.

    I don't understand what a Vim "class" is. Can you provide a vim file that demonstrates the various different forms? This would be added as part of the test suite for future versions.

     
  • David Fishburn

    David Fishburn - 2007-06-06

    Logged In: YES
    user_id=983517
    Originator: NO

    I just noticed the reference to the Vim tip.
    Under the current version of the Vim parser you will get the following tags:
    function
    MyObjectType.method1
    MyObjectType.method2
    variable
    MyObjectType

    When this line is found:
    let MyObjectType = {}

    We have to assume it is a variable of type Dictionary.

    I don't think we can look ahead to determine if there are any functions defined on that variable.

     

Log in to post a comment.