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


static void initializePodParser (const langType language CTAGS_ATTR_UNUSED)
{
}

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

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

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

	static kindDefinition PodKindTable [] = {
		{ true, 'c', "chapter", "chapters" },
		{ true, 's', "section", "sections" },
		{ true, 'S', "subsection", "subsections" },
		{ true, 't', "subsubsection", "subsubsections" },
	};
	static tagRegexTable PodTagRegexTable [] = {
		{"^=head1[ \\t]+(.+)", "\\1",
		"c", NULL},
		{"^=head2[ \\t]+(.+)", "\\1",
		"s", NULL},
		{"^=head3[ \\t]+(.+)", "\\1",
		"S", NULL},
		{"^=head4[ \\t]+(.+)", "\\1",
		"t", NULL},
	};


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

	def->enabled       = true;
	def->extensions    = extensions;
	def->patterns      = patterns;
	def->aliases       = aliases;
	def->method        = METHOD_NOT_CRAFTED|METHOD_REGEX;
	def->kindTable = PodKindTable;
	def->kindCount = ARRAY_SIZE(PodKindTable);
	def->tagRegexTable = PodTagRegexTable;
	def->tagRegexCount = ARRAY_SIZE(PodTagRegexTable);
	def->initialize    = initializePodParser;

	return def;
}
