2008-02-13 Johannes Schmid <jhs@gnome.org>
[anjuta-git-plugin.git] / tagmanager / yacc.c
blob48d4a847f4cd75cd55a248a2d97c8b40e3c33bc2
1 /*
2 * $Id$
4 * Copyright (c) 2001-2002, Nick Hibma <n_hibma@van-laarhoven.org>
6 * This source code is released for free distribution under the terms of the
7 * GNU General Public License.
9 * This module contains functions for generating tags for YACC language files.
13 * INCLUDE FILES
15 #include "general.h" /* must always come first */
17 #include <string.h>
18 #include "parse.h"
21 * FUNCTION DEFINITIONS
24 static void installYaccRegex (const langType language)
26 addTagRegex (language,
27 "^([A-Za-z][A-Za-z_0-9]+)[ \t]*:", "\\1", "l,label,labels", NULL);
30 extern parserDefinition* YaccParser ()
32 static const char *const extensions [] = { "y", NULL };
33 parserDefinition* const def = parserNew ("YACC");
34 def->extensions = extensions;
35 def->initialize = installYaccRegex;
36 def->regex = TRUE;
37 return def;
40 /* vi:set tabstop=4 shiftwidth=4: */