Hi all,

I'm having a problem using the taglist plugin and the vim-feature for
jumping to tags.

I have a language looking like

OPERATION my_op IN pipe.DC
{
...
}

Now I'm using the following line in my .ctags file for recoginizing
these operations.
--regex-lisa=/^[ \t]*OPERATION ([,a-zA-Z0-9_]+)[ \t]IN[
\t]pipe.([a-zA-Z0-9_]+)/\1/o,OPERATIONS/
This works fine. I can list them with the taglist plugin and I can jump
to to them putting the cursor on the name and pressing Ctrl-].

Now, I enhanced the above line a little (adding \2) so that taglist
could not only list the operation's name but also the pipeline stage
that code is assigned to:
--regex-lisa=/^[ \t]*OPERATION ([,a-zA-Z0-9_]+)[ \t]IN[
\t]pipe.([a-zA-Z0-9_]+)/\2   \1/o,OPERATIONS/

When I then generate the tags file again, taglist plugin shows what I
expected, but vim isn't able to jump to the operation anymore (I guess
that's because the respective entry in the tags file is preceded by 'DC'
now.


Even more confusing, taglist display AND jumping works when I first
generate the tags file using the first version of my regex (without the
\2) and afterwards updating the above line in the .ctags file but not
invoking ctags again. Then, the vim jump feature works and I can change
the display of taglist plugin just by pressing u for update. This makes
it display the operations following the new rule.


--> Am I doing something wrong? Can a probably generate one entry in the
tags file for vim's jump and one for the name used by taglist plugin?
Any other ideas or hints were I could read further?


Thanks a lot!

Christian

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to