4 * Copyright (c) 2008, David Fishburn
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 Ant language files.
15 #include "general.h" /* must always come first */
21 * FUNCTION DEFINITIONS
24 static void installAntRegex (const langType language
)
26 addTagRegex (language
,
27 "^[ \t]*<[ \t]*project[^>]+name=\"([^\"]+)\".*", "\\1", "p,project,projects", NULL
);
28 addTagRegex (language
,
29 "^[ \t]*<[ \t]*target[^>]+name=\"([^\"]+)\".*", "\\1", "t,target,targets", NULL
);
32 extern parserDefinition
* AntParser ()
34 static const char *const extensions
[] = { "build.xml", NULL
};
35 parserDefinition
* const def
= parserNew ("Ant");
36 def
->extensions
= extensions
;
37 def
->initialize
= installAntRegex
;
42 /* vi:set tabstop=4 shiftwidth=4: */