qianjigui 发表于 2013-1-31 00:30:12

global + Ruby

http://simple-and-basic.com/2008/10/using-rtags-ang-gtags-for-coding-ruby.html
 
common:\      :skip=GPATH,GTAGS,GRTAGS,GSYMS,HTML/,HTML.pub/,html/,tags,TAGS,ID,y.tab.c,y.tab.h,.notfunction,cscope.out,cscope.po.out,cscope.in.out,.gdbinit,SCCS/,RCS/,CVS/,CVSROOT/,{arch}/,.svn/,.git/,.cvsrc,.cvsignore,.gitignore,.cvspass,.cvswrappers,.deps/,autom4te.cache/,.snprj/:\      :langmap=c\:.c.h,yacc\:.y,asm\:.s.S,java\:.java.rb,cpp\:.c++.cc.cpp.cxx.hxx.hpp.C.H,php\:.php.php3.phtml:# We need to change some of the output that rtags dumps## Module::Submodule is NOT found by global (don't know why)# Module:Submodule IS found# So we replace :: with :## Also, dotnames are not allowed in tags# So, when rtag parses this#   class User ;def self.validate ; end ; end# as:#   User.validateline_no file_name line# global doesn't find it with: global -c User# So we need to replace any dots in the firts column with ##   User#validate line_no file_name line## So we need to to this:# rtags -x %s | awk '{ sub(/^::/, "") ; sub(/::/, ":"); sub(/\\./, "#", $1); print}'#default:\      :tc=common:\      :suffixes=s,a,sa,asm,C,H,cpp,cxx,hxx,hpp,cc,c,h,y,rb:\      :extractmethod:\      :GTAGS=rtags -x %s | awk '{ sub(/^\:\:/, "") ; sub(/\:\:/, "\:"); sub(/\\./, "#", $1); print}':\      :GRTAGS=gtags-parser -dtr %s:\      :GSYMS=gtags-parser -dts %s:
页: [1]
查看完整版本: global + Ruby