diff options
author | Darin Adler <darin@src.gnome.org> | 2001-02-28 22:15:06 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2001-02-28 22:15:06 +0000 |
commit | 636d444db8f804232a5923ea736078139889dcce (patch) | |
tree | fba8f01230f05fc17e7b40f271ecc3e3469afc90 /check-strings.pl | |
parent | 7605ce7bed18fa5433a13fff83cc758b38feab73 (diff) | |
download | nautilus-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-x | check-strings.pl | 6 |
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}; } } |