Making "inline" behave like an attribute. Fixes #1
[arduino-ctags.git] / yacc.c
blob01a641492206f6c53aa6bd2f83c4779b617b8ce0
1 /*
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.
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: */