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


static void initializeQemuHXParser (const langType language CTAGS_ATTR_UNUSED)
{
}

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

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

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

	static kindDefinition QemuHXKindTable [] = {
		{ true, 'q', "qmp", "QEMU Managment Protocol dispatch table entries" },
		{ true, 'i', "infoitem", "item in texinfo doc" },
	};
	static xtagDefinition QemuHXXtagTable [] = {
		{
		  .enabled     = true,
		  .name        = "funcmap",
		  .description = "mapping SQMP to C function name",
		},
	};
	static tagRegexTable QemuHXTagRegexTable [] = {
		{"^SQMP[[:space:]]([-a-z_0-9A-Z]+)[[:space:]]---", "\\1",
		"q", "{_multiline=1}"},
		{"^SQMP[[:space:]]([-a-z_0-9A-Z]+)[[:space:]]---", "qmp_\\1",
		"q", "{_multiline=1}{_extra=funcmap}"},
		{"^@item[[:space:]]{1,}([-.a-z_0-9A-Z]{1,})", "\\1",
		"i", NULL},
	};


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

	def->enabled       = true;
	def->extensions    = extensions;
	def->patterns      = patterns;
	def->aliases       = aliases;
	def->method        = METHOD_NOT_CRAFTED|METHOD_REGEX;
	def->kindTable = QemuHXKindTable;
	def->kindCount = ARRAY_SIZE(QemuHXKindTable);
	def->xtagTable = QemuHXXtagTable;
	def->xtagCount = ARRAY_SIZE(QemuHXXtagTable);
	def->tagRegexTable = QemuHXTagRegexTable;
	def->tagRegexCount = ARRAY_SIZE(QemuHXTagRegexTable);
	def->initialize    = initializeQemuHXParser;

	return def;
}
