[Lxr-general] [PATCH] Add some new language objects understood by ectags
Brought to you by:
ajlittoz
From: Jan-Benedict G. <jb...@lu...> - 2006-03-26 11:59:15
|
Hi! Maximilian Wilhelm and I started to work on LXR to support GIT as a backend (since GIT is now used for Linux kernel work.) When it started to work somewhat, I found out that ectags now recognizes some more object types. This patch supports those and also reorders existing entries. MfG, JBG 2006-03-26 Jan-Benedict Glaw <jb...@lu...> Maximilian Wilhelm <ma...@rf...> * lib/LXR/Lang/generic.conf (langmap->C->typemap): Sort. (langmap->C++->typemap): Dito. (langmap->SQL->typemap): Dito. (langmap->VB->typemap): Dito. (langmap->Perl->typemap): Sort, add 'l' for "label". (langmap->Python->typemap): Add 'm' for "member". --- a/lib/LXR/Lang/generic.conf 19 Oct 2004 19:19:21 -0000 1.18 +++ b/lib/LXR/Lang/generic.conf 26 Mar 2006 10:23:33 -0000 @@ -44,6 +44,7 @@ 'e' =3D> 'enumerator', 'f' =3D> 'function definition', 'g' =3D> 'enumeration name', + 'i' =3D> 'interface', 'm' =3D> 'class, struct, or union member', 'n' =3D> 'namespace', 'p' =3D> 'function prototype or declaration', @@ -52,7 +53,6 @@ 'u' =3D> 'union name', 'v' =3D> 'variable definition', 'x' =3D> 'extern or forward variable declaration', - 'i' =3D> 'interface' }, 'langid' =3D> '1', }, @@ -91,6 +91,7 @@ 'e' =3D> 'enumerator', 'f' =3D> 'function definition', 'g' =3D> 'enumeration name', + 'i' =3D> 'interface', 'm' =3D> 'class, struct, or union member', 'n' =3D> 'namespace', 'p' =3D> 'function prototype or declaration', @@ -99,7 +100,6 @@ 'u' =3D> 'union name', 'v' =3D> 'variable definition', 'x' =3D> 'extern or forward variable declaration', - 'i' =3D> 'interface' }, 'langid' =3D> '2', =20 @@ -562,8 +562,9 @@ 'string' =3D> ("'", "'") ], 'typemap' =3D> { - 's' =3D> 'subroutine', + 'l' =3D> 'label', 'p' =3D> 'package', + 's' =3D> 'subroutine', }, 'langid' =3D> '7', =20 @@ -587,6 +588,7 @@ 'typemap' =3D> { 'c' =3D> 'class', 'f' =3D> 'function', + 'm' =3D> 'class member', }, 'langid' =3D> '8', }, @@ -990,17 +992,17 @@ 'string', "'", "'", 'atom', '\\\\.', '', ], 'typemap' =3D> { - 'f' =3D> 'field', 'c' =3D> 'constraint', - 't' =3D> 'table', - 'T' =3D> 'trigger', - 'F' =3D> 'function', - 'P' =3D> 'procedure', 'C' =3D> 'cursor', - 'p' =3D> 'package', + 'f' =3D> 'field', + 'F' =3D> 'function', 'i' =3D> 'index', + 'p' =3D> 'package', + 'P' =3D> 'procedure', 's' =3D> 'sequence', 'S' =3D> 'synonym', + 't' =3D> 'table', + 'T' =3D> 'trigger', 'v' =3D> 'view', }, 'langid' =3D> '11', @@ -1049,14 +1051,14 @@ 'atom', '\\\\.', '', ], 'typemap' =3D> { - 's' =3D> 'subroutine', - 'f' =3D> 'function', 'c' =3D> 'const', - 'n' =3D> 'name', - 'l' =3D> 'label', 'e' =3D> 'enum', - 'v' =3D> 'variable', + 'f' =3D> 'function', + 'l' =3D> 'label', + 'n' =3D> 'name', + 's' =3D> 'subroutine', 't' =3D> 'type', + 'v' =3D> 'variable', }, 'langid' =3D> '12', }, --=20 Jan-Benedict Glaw jb...@lu... . +49-172-7608481 = _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg = _ _ O f=C3=BCr einen Freien Staat voll Freier B=C3=BCrger" | im Internet! | i= m Irak! O O O ret =3D do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA)= ); |