-
-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way of specifying type nesting/hierarchy #34
Comments
Yes, unfortunately generating scope information is not possible with the regular expression approach in ctags -- the regular expressions only take the current line into account, and scope information requires knowledge of the file before that to determine the correct scope. It is possible to extend ctags in a way that generates scope information, but that requires writing a proper parser module in C (see here: http://ctags.sourceforge.net/EXTENDING.html). So I'm afraid I can't do anything about that in Tagbar. But once such a module exists it would of course be easy to add an appropriate Tagbar configuration like what you already have. |
I was afraid that this is going to be the case. Anyway - thank you for creating TagBar, shame about ctags not being easily extensible. |
@lukaszkorecki There is a problem with multiline comments. ###
This is some text.
More text here.
###
|
Can you add an issue to coffeetags? :-) Thanks |
I did not know coffeetags existed. Does your coffeetags, considering you are the author, have this problem? You would probably have noticed it by now. |
w.r.t to the block comment - I think that coffeetags has the same bug (I didn't have the time to check to be honest, and I never had to use block comments in my own CoffeeScript code) Anyway, lets not pollute this thread any more - I've created an appropriate issue |
I came for the lovely nesting, so I'm sad to hear it's language-specific. It occurs to me that in many file formats there is a way to guess the nesting without understanding the language, and that is by the indentation of the lines in the buffer. (This will work better on some files than others.) I knocked up a proof-of-concept by modifying taglist.vim. Source: http://hwi.ath.cx/code/home/.vim/plugin/taglist.vim It's only a prototype, it doesn't squeeze down 4-space indents. But it's something to consider to introduce the possibility of nesting for lesser-known languages. |
That sounds pretty fragile, but I guess it could be useful for some languages. I'll have a look if something like it could be integrated into Tagbar. One question though: it seems like you're calculating the indent yourself, is there a reason why you're not using the |
Hi
I'm trying to make tagbar work with CoffeeScript. So far I got it working ok with classes which are contained in a single file
Configuration used:
(in .vimrc):
and
coffee.ctags
This doesn't work in a file which has multiple classes or object literals with methods.
Is there a way of saying that kind
method
(m
) belongs toobject
(o
)? Or am I asking for too much and such functionality would have to be added to ctags/jsctags (or whatever it is called nowadays)?The text was updated successfully, but these errors were encountered: