bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Function palyer plugin parser


From: Hideki IWAMOTO
Subject: Re: [PATCH] Function palyer plugin parser
Date: Fri, 19 Feb 2010 00:00:26 +0900

HI.
On Wed, 17 Feb 2010 15:05:47 +0900, Shigio YAMAGUCHI wrote...
> 1. How about writing complete mapping including 'langmap' in the the
>    'plugin-example' entry not to load the built-in parser?
>    There must be users who want to use ctags-exuberant's C parser
>    instead of the built-in C parser. Those who hope mixed usage
>    can change it according to his purpose.

I simply added the mapping of c, yacc, asm, java, cpp and php to the 
plugin-exmaple entry. 

$ gtags --gtagsconf=gtags.conf --gtagslabel=plugin-example --config=langmap
c:.c.h,yacc:.y,asm:.s.S,java:.java,cpp:.c++.cc.cpp.cxx.hxx.hpp.C.H,php:.php.php3.phtml,c:.c.h,yacc:.y,asm:.s.S,java:.java,cpp:.c++.cc.cpp.cxx.hxx
.hpp.C.H,php:.php.php3.phtml,fortran:.f.for.f77.f90.f95,pascal:.p.pas,c#:.cs,lisp:.l.el.lisp,scheme:.scm,awk:.awk,ruby:.rb,perl:.pl,python:.py,vi
m:.vim,sh:.sh
$ interdiff 20100216-function-layer-plugin-parser-3.patch 
20100218-function-layer-plugin-parser.patch
diff -u gtags.conf.in gtags.conf.in
--- gtags.conf.in       16 Feb 2010 16:07:18 -0000
+++ gtags.conf.in       18 Feb 2010 14:43:41 -0000
@@ -76,8 +76,15 @@
 #
 plugin-example|Example of function layer plugin parser:\
        :tc=common:use_builtin_parser:extractmethod:\
+       :address@hidden@:\
        
:langmap=fortran\:.f.for.f77.f90.f95,pascal\:.p.pas,c#\:.cs,lisp\:.l.el.lisp,scheme\:.scm:\
        :langmap=awk\:.awk,ruby\:.rb,perl\:.pl,python\:.py,vim\:.vim,sh\:.sh:\
+       :gtags_parser=c\:@prefix@/lib/gtags/exuberant-ctags.la:\
+       :gtags_parser=yacc\:@prefix@/lib/gtags/exuberant-ctags.la:\
+       :gtags_parser=asm\:@prefix@/lib/gtags/exuberant-ctags.la:\
+       :gtags_parser=java\:@prefix@/lib/gtags/exuberant-ctags.la:\
+       :gtags_parser=cpp\:@prefix@/lib/gtags/exuberant-ctags.la:\
+       :gtags_parser=php\:@prefix@/lib/gtags/exuberant-ctags.la:\
        :gtags_parser=fortran\:@prefix@/lib/gtags/exuberant-ctags.la:\
        :gtags_parser=pascal\:@prefix@/lib/gtags/exuberant-ctags.la:\
        :gtags_parser=c#\:@prefix@/lib/gtags/exuberant-ctags.la:\

----
Hideki IWAMOTO  address@hidden

Attachment: 20100218-function-layer-plugin-parser.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]