Skip to content

Commit e56ffd8

Browse files
committed
Detection of package name
The detection of a package name gives wrong results in case we have: ``` package Mail::SpamAssassin::Bayes::CombineChi; 1; ``` This gives a warning: ``` warning: the name '1' supplied as the argument of the \class, \struct, \union, or \include command is not an input file ``` we will now stop searching after the first ';'
1 parent b470a10 commit e56ffd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doxygen/Filter/Perl.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ sub ProcessFile
258258
# Process states
259259
if ($self->{'_sState'} eq 'NORMAL')
260260
{
261-
if ($line =~ /^\s*package\s*(.*)\;$/)
261+
if ($line =~ /^\s*package\s*([^;]*)\;/)
262262
{
263263
#$self->{'_sCurrentClass'} = $1;
264264
#push (@{$self->{'_hData'}->{'class'}->{'classorder'}}, $1);

0 commit comments

Comments
 (0)