俺 gtags.conf
デフォルトに手を少し加えただけ。
Win32用gtags配布先
1 # 2 # Copyright (c) 1998, 1999, 2000, 2001, 2002, 2003 3 # Tama Communications Corporation 4 # 5 # This file is part of GNU GLOBAL. 6 # 7 # GNU GLOBAL is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 2, or (at your option) 10 # any later version. 11 # 12 # GNU GLOBAL is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with this program; if not, write to the Free Software 19 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # * 22 # Configuration file for GNU GLOBAL source code tag system. 23 # 24 # GLOBAL doesn't need 'gtags.conf' because it has the default values in it. 25 # But if you have this file as '/etc/gtags.conf' or "$HOME/.globalrc" 26 # then GLOBAL system overwrite default values with the values from the file. 27 # 28 # 'gtags.conf' is termcap style file. 29 # 'default' is default target. 30 # You can specify target with GTAGSLABEL environment variable. 31 # 32 # Variable 'suffixes' is obsoleted but is acceptable because it is needed 33 # for plugged-in parser. If you use gtags-parser(1) then you should use 34 # variable 'langmap' instead. 35 # 36 default:\ 37 :tc=gtags:tc=htags: 38 #--------------------------------------------------------------------- 39 # Configuration for gtags(1) 40 # See gtags(1). 41 #--------------------------------------------------------------------- 42 common:\ 43 :skip=GPATH,GTAGS,GRTAGS,GSYMS,HTML/,HTML.pub/,html/,tags,TAGS,ID,y.tab.c,y.tab.h,.notfunction,cscope.out,.gdbinit,zip/,samplecodes/,unittest/,SCCS/,RCS/,CVS/,CVSROOT/,{arch}/,.svn/,.cvsrc,.cvsignore,.gitignore,.cvspass,.cvswrappers,.deps/,autom4te.cache/,.snprj/:\ 44 :langmap=c\:.c.h,yacc\:.y,asm\:.s.S,java\:.java,cpp\:.c++.cc.cpp.cxx.hxx.hpp.C.H,php\:.php.php3.phtml: 45 # 46 # [gtags-parser] 47 # 48 # This command is distributed as part of GLOBAL. 49 # The %s is replaced with the path of source file. 50 # You need not use --langmap=xxx option. Gtags-parser(1) get the value 51 # from environment variable. 52 # 53 gtags:\ 54 :tc=common:\ 55 :GTAGS=gtags-parser -dt %s:\ 56 :GRTAGS=gtags-parser -dtr %s:\ 57 :GSYMS=gtags-parser -dts %s: 58 # 59 # [Exuberant Ctags] 60 # 61 # This ctags is distributed as a part of Vim editor. 62 # 63 # [Installation] 64 # % cd <Vim source directory>/src/ctags 65 # % make 66 # # cp ctags /usr/local/bin/ctags-exuberant 67 # 68 ctags-exuberant|Exuberant Ctags|ctags by Darren Hiebert:\ 69 :tc=common:\ 70 :suffixes=s,a,sa,asm,C,H,cpp,cxx,hxx,hpp,cc,c,h,y:\ 71 :extractmethod:\ 72 :GTAGS=/usr/local/bin/ctags-exuberant -xu %s | perl -ne '\ 73 if (/^operator \\S+\\s+function\\s/) { s/^operator //; }\ 74 ($name, $type, $no, $path, $line) = split(/[ \\t]+/, $_, 5);\ 75 printf(STDOUT "%-16s %4d %-16s %s", $name, $no, $path, $line);': 76 #--------------------------------------------------------------------- 77 # Configuration for htags(1) 78 # Let's paint hypertext with your favorite colors! 79 # See htags(1). 80 #--------------------------------------------------------------------- 81 htags:\ 82 :body_begin=<body text='#191970' bgcolor='#f5f5dc' vlink='gray'>:body_end=</body>:\ 83 :table_begin=<table>:table_end=</table>:\ 84 :title_begin=<h1><font color='#cc0000'>:title_end=</font></h1>:\ 85 :comment_begin=<i><font color='green'>:comment_end=</font></i>:\ 86 :sharp_begin=<font color='darkred'>:sharp_end=</font>:\ 87 :brace_begin=<font color='red'>:brace_end=</font>:\ 88 :warned_line_begin=<span style='background-color\:yellow'>:warned_line_end=</span>:\ 89 :reserved_begin=<b>:reserved_end=</b>:script_alias=/cgi-bin/:\ 90 :ncol#4:tabs#8:normal_suffix=html:gzipped_suffix=ghtml:\ 91 :definition_header=no: