Ctags generator for CORBA IDL?

I work in a multilingual environment and use Vim + ctags to navigate the code. However, we also use CORBA, and redundant ctags do not parse IDL files.

Does anyone know of a tag generator compatible with IDL tags?

+3
source share
2 answers

If you use the simple regexp parser, then this is a pretty trivial exercise to extend Exuberant Ctags to support another language.

For example, the following is an example of a regexp parser taken from the Exuberant Ctags parser page :

/***************************************************************************
 * make.c
 * Regex-based parser for makefile macros
 **************************************************************************/
/* INCLUDE FILES */
#include "general.h"    /* always include first */
#include "parse.h"      /* always include */

/* FUNCTION DEFINITIONS */

static void installMakefileRegex (const langType language)
{
    addTagRegex (language, "(^|[ \t])([A-Z0-9_]+)[ \t]*:?=", "\\2", "m,macro", "i");
}

/* Create parser definition stucture */
extern parserDefinition* MakefileParser (void)
{
    static const char *const patterns [] = { "[Mm]akefile", NULL };
    static const char *const extensions [] = { "mak", NULL };
    parserDefinition* const def = parserNew ("Makefile");
    def->patterns   = patterns;
    def->extensions = extensions;
    def->initialize = installMakefileRegex;
    def->regex      = TRUE;
    return def;
}
+5
source

ctags, ctags.

+2

Source: https://habr.com/ru/post/1730217/


All Articles