1 /*
2 * Generated by ./misc/optlib2c from optlib/gdbinit.ctags, Don't edit this manually.
3 */
4 #include "general.h"
5 #include "parse.h"
6 #include "routines.h"
7 #include "field.h"
8 #include "xtag.h"
9
10
initializeGdbinitParser(const langType language CTAGS_ATTR_UNUSED)11 static void initializeGdbinitParser (const langType language CTAGS_ATTR_UNUSED)
12 {
13 }
14
GdbinitParser(void)15 extern parserDefinition* GdbinitParser (void)
16 {
17 static const char *const extensions [] = {
18 "gdb",
19 NULL
20 };
21
22 static const char *const aliases [] = {
23 NULL
24 };
25
26 static const char *const patterns [] = {
27 ".gdbinit",
28 NULL
29 };
30
31 static kindDefinition GdbinitKindTable [] = {
32 {
33 true, 'd', "definition", "definitions",
34 },
35 {
36 false, 'D', "document", "documents",
37 },
38 {
39 true, 't', "toplevelVariable", "toplevel variables",
40 },
41 {
42 false, 'l', "localVariable", "local variables",
43 },
44 };
45 static tagRegexTable GdbinitTagRegexTable [] = {
46 {"^#.*", "",
47 "", "{exclusive}", NULL, false},
48 {"^define[[:space:]]+([^[:space:]]+)$", "\\1",
49 "d", NULL, NULL, false},
50 {"^document[[:space:]]+([^[:space:]]+)$", "\\1",
51 "D", NULL, NULL, false},
52 {"^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",
53 "t", NULL, NULL, false},
54 {"^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",
55 "l", NULL, NULL, false},
56 };
57
58
59 parserDefinition* const def = parserNew ("Gdbinit");
60
61 def->enabled = true;
62 def->extensions = extensions;
63 def->patterns = patterns;
64 def->aliases = aliases;
65 def->method = METHOD_NOT_CRAFTED|METHOD_REGEX;
66 def->kindTable = GdbinitKindTable;
67 def->kindCount = ARRAY_SIZE(GdbinitKindTable);
68 def->tagRegexTable = GdbinitTagRegexTable;
69 def->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable);
70 def->initialize = initializeGdbinitParser;
71
72 return def;
73 }
74