On 2008-12-11, David Fishburn wrote: > On 12/11/08, Robert Mark Bram <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > > I am using using TagList for ANT build files as per > > http://vim.wikia.com/wiki/Using_TagList_for_ANT_build_files > > > > To pick up targets, I am using: > > --regex-ant=/^[ \t]*<[ \t]*target.*name="([^<"&]+)".*>/\1/t,target/i > > > > The problem is this will only pick up targets where the opening tag is > > all on one line. For example, it will pick up > > <target name="clean" depends="init" description="..."> > > but not > > <target name="clean" > > depends="init" > > description="..."> > > The problem with the suggestions from others is this is NOT a vim regex. > This is executed by ctags.exe, so you have to use Perl reg > expressions, not Vim ones. > > Maybe the ones provided do work with Perl, but I don't think so.
On my system, "man ctags" for version 5.5.4 says nothing about Perl--it says it uses Posix extended regular expressions, "roughly that used by egrep(1)". Regards, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
