yalay / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Support for backslash in tags (generated by ctags) #228

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Assume there's a tag entry in tag file: 
  Zend\Session\AbstractContainer    library/zendframework/zend-session/Zend/Session/AbstractContainer.php   /^abstract class AbstractContainer extends ArrayObject$/;"  c   line:27 language:PHP    namespace:Zend\Session  inherits:ArrayObject
2. and iskeyword includes backslash: set iskeyword+=\\
3. move the cursor over the text 'Zend\Session\AbstractContainer' and type 
Ctrl+]

What is the expected output? What do you see instead?
I expect vim to navigate to 
library/zendframework/zend-session/Zend/Session/AbstractContainer.php
Ctrl+] results in E426: tag not found: Zend\\Session\\AbstractContainer
:tselect /Zend\\Session\\Abstract shows:
 # pri kind tag                             file
  1 F   c    Zend\Session\AbstractContainer  library/zendframework/zend-session/Zend/Session/AbstractContainer.php
               line:27 language:PHP namespace:Zend\Session inherits:ArrayObject
               abstract class AbstractContainer extends ArrayObject

What version of the product are you using? On what operating system?
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 27 2014 21:55:04)
Included patches: 1-273
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+acl             +cscope          +folding         +menu            
+netbeans_intg   -sniff           +virtualedit
+arabic          +cursorbind      -footer          +mksession       +path_extra 
     +startuptime     +visual
+autocmd         +cursorshape     +fork()          +modify_fname    +perl       
     +statusline      +visualextra
+balloon_eval    +dialog_con_gui  +gettext         +mouse           
+persistent_undo -sun_workshop    +viminfo
+browse          +diff            -hangul_input    +mouseshape      +postscript 
     +syntax          +vreplace
++builtin_terms  +digraphs        +iconv           +mouse_dec       +printer    
     +tag_binary      +wildignore
+byte_offset     +dnd             +insert_expand   +mouse_gpm       +profile    
     +tag_old_static  +wildmenu
+cindent         -ebcdic          +jumplist        -mouse_jsbterm   +python     
     -tag_any_white   +windows
+clientserver    +emacs_tags      +keymap          +mouse_netterm   -python3    
     +tcl             +writebackup
+clipboard       +eval            +langmap         +mouse_sgr       +quickfix   
     +terminfo        +X11
+cmdline_compl   +ex_extra        +libcall         -mouse_sysmouse  +reltime    
     +termresponse    -xfontset
+cmdline_hist    +extra_search    +linebreak       +mouse_urxvt     +rightleft  
     +textobjects     +xim
+cmdline_info    +farsi           +lispindent      +mouse_xterm     +ruby       
     +title           +xsmp_interact
+comments        +file_in_path    +listcmds        +multi_byte      +scrollbind 
     +toolbar         +xterm_clipboard
+conceal         +find_in_path    +localmap        +multi_lang      +signs      
     +user_commands   -xterm_save
+cryptv          +float           +lua             -mzscheme        
+smartindent     +vertsplit       +xpm
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread 
-I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2
.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
 -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/u
sr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.
0/include -I/usr/include/freetype2  -D_REENTRANT -DORBIT2=1 -pthread 
-I/usr/include/libgnomeui-2.0 -I/usr/include/gnome-keyring-1
 -I/usr/include/libbonoboui-2.0 -I/usr/include/libxml2 -I/usr/include/libgnome-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bo
nobo-activation-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libgnomecanvas-2.0 
-I/usr/include/gail-1.0 -I/usr/include/libart-2.0
-I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include 
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/inclu
de/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng12 -I
/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 
-I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I
/usr/include/libpng12 -I/usr/include/gnome-vfs-2.0 
-I/usr/lib/x86_64-linux-gnu/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/us
r/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/incl
ude    -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
-Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
    -I/usr/include/tcl8.6  -D_REENTRANT=1  -D_THREAD_SAFE=1  -D_LARGEFILE64_SOURCE=1
Linking: gcc   -L. -Wl,-z,relro 
-L/build/ruby2.1-R1fHdQ/ruby2.1-2.1.2/debian/lib -fstack-protector -rdynamic 
-Wl,-export-dynamic
-Wl,-E  -Wl,-z,relro -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 
-lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lg
io-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig 
-lfreetype   -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnome-
2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lgnomecanvas-2 -lart_lgpl_2 
-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk
-1.0 -lcairo -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype 
-lgdk_pixbuf-2.0 -lgnomevfs-2 -lgconf-2 -lgthread-2.0 -
lgmodule-2.0 -lgobject-2.0 -lglib-2.0  -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM 
-lICE  -lm -ltinfo -lnsl  -lselinux  -lacl -lattr
 -lgpm -ldl  -L/usr/lib -llua5.1 -Wl,-E  -fstack-protector -L/usr/local/lib  -L/usr/lib/perl/5.18/CORE -lperl -ldl -lm -lpthread
-lcrypt -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl 
-lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-
Bsymbolic-functions  -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread 
-lieee -lm -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -
lm

running on Debian Sid

Please provide any additional information below.

Original issue reported on code.google.com by weirdan on 9 Jun 2014 at 1:23