list Tom Tromey as GDB Global Maintainer
[external/binutils.git] / libiberty / gather-docs
index 94d3fcf..888ef4f 100644 (file)
@@ -1,8 +1,7 @@
 #!/usr/bin/perl
 # -*- perl -*-
 
-#   Copyright (C) 2001
-#   Free Software Foundation
+#   Copyright (C) 2001-2018 Free Software Foundation, Inc.
 #
 # This file is part of the libiberty library.
 # Libiberty is free software; you can redistribute it and/or
@@ -73,8 +72,8 @@ for $in (@ARGV) {
 
            if (/^\@def[a-z]*[a-wyz] /) {
                
-               ($name) = m/[^\(]* ([^\( \t\r\n]+) *\(/;
-               $name =~ s/[    ]*$//;
+               ($name) = m/[^\(]* ([^\( \t\r\n\@]+) *(\(|\@?$)/;
+               $name =~ s/[     ]*\@?$//;
                $key = $name;
                $key =~ tr/A-Z/a-z/;
                $key =~ s/[^a-z0-9]+/ /g;