summaryrefslogtreecommitdiff
path: root/check-strings.pl
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2001-02-28 22:15:06 +0000
committerDarin Adler <darin@src.gnome.org>2001-02-28 22:15:06 +0000
commit636d444db8f804232a5923ea736078139889dcce (patch)
treefba8f01230f05fc17e7b40f271ecc3e3469afc90 /check-strings.pl
parent7605ce7bed18fa5433a13fff83cc758b38feab73 (diff)
downloadnautilus-636d444db8f804232a5923ea736078139889dcce.tar.gz
Fixed error in script that John noticed when he tried it. The regular
* check-strings.pl: Fixed error in script that John noticed when he tried it. The regular expression for matching function names was matching way too many.
Diffstat (limited to 'check-strings.pl')
-rwxr-xr-xcheck-strings.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/check-strings.pl b/check-strings.pl
index 844c4e8c9..a8f5f0930 100755
--- a/check-strings.pl
+++ b/check-strings.pl
@@ -52,7 +52,7 @@ while (<FUNCTIONS>)
push @no_translation_needed_functions, $_;
}
close FUNCTIONS;
-my $no_translation_needed_function_pattern = "^" . (join "|", @no_translation_needed_functions) . "\$";
+my $no_translation_needed_function_pattern = "^(" . (join "|", @no_translation_needed_functions) . ")\$";
# read in file with patterns for which no translation is needed
my @no_translation_needed_patterns;
@@ -143,11 +143,11 @@ FILE: foreach my $file (@ARGV)
}
elsif ($found eq ")")
{
- (print "$file:$.:mismatched paren 1\n"), next FILE if $paren_level == 0;
+ (print "$file:$.:mismatched paren (type 1)\n"), next FILE if $paren_level == 0;
$paren_level--;
if ($paren_level == 0)
{
- (print "$file:$.:mismatched paren 2\n"), next FILE if @stack == 0;
+ (print "$file:$.:mismatched paren (type 2)\n"), next FILE if @stack == 0;
($paren_level, $in_exception_function) = @{pop @stack};
}
}