VIM7 Autoload and Class patch
Brought to you by:
dhiebert
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
VIM syntax patch
Logged In: YES
user_id=983517
Originator: NO
I will have a look at this patch, I am maitaining the Vim parser now.
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.
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.
Logged In: YES
user_id=697486
Originator: YES
Hi,
Have a look here:
http://en.wikibooks.org/wiki/Learning_the_vi_editor/Vim/Ex/Exim_Script_language#Object_orientated_programming
Of course this is only one way to compose a class in Vim-Script.
Martin