fix ant regexes

git-svn-id: svn://svn.code.sf.net/p/ctags/code/trunk@739 c5d04d22-be80-434c-894e-aa346cc9e8e8
This commit is contained in:
jafl 2009-09-08 23:19:41 +00:00
parent d843a8430c
commit 778201aa43
2 changed files with 3 additions and 2 deletions

1
NEWS
View File

@ -3,6 +3,7 @@ Current Version: @VERSION@
ctags-@VERSION@ (@DATE@)
* Don't parse comments after import statements and other tags, contributed by Huandari Lopez to Geany [Python].
* Fixed PHP parser to ignore keywords inside comments [PHP, Bug #1795926].
* Adjusted regexes for Ant so they won't span multiple tags [Ant].
ctags-5.8 (09 Jul 2009)
* Removed ".ml" as a Lisp extension (now OCaml) [Lisp].

4
ant.c
View File

@ -24,9 +24,9 @@
static void installAntRegex (const langType language)
{
addTagRegex (language,
"^[ \t]*<[ \t]*project.*name=\"([^\"]+)\".*", "\\1", "p,project,projects", NULL);
"^[ \t]*<[ \t]*project[^>]+name=\"([^\"]+)\".*", "\\1", "p,project,projects", NULL);
addTagRegex (language,
"^[ \t]*<[ \t]*target.*name=\"([^\"]+)\".*", "\\1", "t,target,targets", NULL);
"^[ \t]*<[ \t]*target[^>]+name=\"([^\"]+)\".*", "\\1", "t,target,targets", NULL);
}
extern parserDefinition* AntParser ()