/*
 * Generated by ./misc/optlib2c from optlib/gdbinit.ctags, Don't edit this manually.
 */
#include "general.h"
#include "parse.h"
#include "routines.h"


static void initializeGdbinitParser (const langType language)
{
	enableRegexKind (language, 'D', false);
	enableRegexKind (language, 'l', false);
}

extern parserDefinition* GdbinitParser (void)
{
	static const char *const extensions [] = {
		"gdb",
		NULL
	};

	static const char *const aliases [] = {
		NULL
	};

	static const char *const patterns [] = {
		".gdbinit",
		NULL
	};

	static tagRegexTable GdbinitTagRegexTable [] = {
		{"^#.*", "",
		"", "{exclusive}"},
		{"^define[[:space:]]+([^[:space:]]+)$", "\\1",
		"d,definition", NULL},
		{"^document[[:space:]]+([^[:space:]]+)$", "\\1",
		"D,document", NULL},
		{"^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",
		"t,toplevelVariable", NULL},
		{"^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",
		"l,localVariable", NULL},
	};


	parserDefinition* const def = parserNew ("gdbinit");

	def->enabled       = false;
	def->extensions    = extensions;
	def->patterns      = patterns;
	def->aliases       = aliases;
	def->method        = METHOD_NOT_CRAFTED|METHOD_REGEX;
	def->tagRegexTable = GdbinitTagRegexTable;
	def->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable);
	def->initialize    = initializeGdbinitParser;

	return def;
}
