2 * $Id: yacc.c 443 2006-05-30 04:37:13Z darren $
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.
15 #include "general.h" /* must always come first */
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
;
40 /* vi:set tabstop=4 shiftwidth=4: */