Sha256: f0c448b1c8e82957cc26ffee0bbbde63766e7b95764e2c0db4321a027fe2b96d

Contents?: true

Size: 1004 Bytes

Versions: 5

Compression:

Stored size: 1004 Bytes

Contents

/*
*   $Id$
*
*   Copyright (c) 2009, David Fishburn
*
*   This source code is released for free distribution under the terms of the
*   GNU General Public License.
*
*   This module contains functions for generating tags for DOS Batch language files.
*/

/*
*   INCLUDE FILES
*/
#include "general.h"  /* must always come first */

#include <string.h>
#include "parse.h"

/*
*   FUNCTION DEFINITIONS
*/

static void installDosBatchRegex (const langType language)
{
	addTagRegex (language,
		"^:([A-Za-z_0-9]+)", "\\1", "l,label,labels", NULL);
	addTagRegex (language,
		"set[ \t]+([A-Za-z_0-9]+)[ \t]*=", "\\1", "v,variable,variables", NULL);
}

extern parserDefinition* DosBatchParser ()
{
	static const char *const extensions [] = { "bat", "cmd", NULL };
	parserDefinition* const def = parserNew ("DosBatch");
	def->extensions = extensions;
	def->initialize = installDosBatchRegex;
	def->regex      = TRUE;
	return def;
}

/* vi:set tabstop=4 shiftwidth=4: */

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ctags.rb-1.0.19 ext/vendor/exuberant-ctags/dosbatch.c
ctags.rb-1.0.18 ext/vendor/exuberant-ctags/dosbatch.c
ctags.rb-1.0.15 ext/vendor/exuberant-ctags/dosbatch.c
ctags.rb-1.0.6 ext/vendor/exuberant-ctags/dosbatch.c
ctags.rb-1.0.0 ext/vendor/exuberant-ctags/dosbatch.c