aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-01-09 11:03:20 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-01-09 11:05:13 +0000
commit072bc2a1ddc5ffd0d04001adf620b215f69e94fb (patch)
tree37c3e9aba1c9b55369236dcd05504c4f7644c2cc /bin
parent4e4ede7e48fb30429c8d9c3e5eb95e3480e451d7 (diff)
Catch nget() when written on a single line.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gettext-nget-patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gettext-nget-patch b/bin/gettext-nget-patch
index 67f98e319..5d30cc922 100755
--- a/bin/gettext-nget-patch
+++ b/bin/gettext-nget-patch
@@ -15,9 +15,9 @@ find( sub {
next unless /nget/;
my $line = $.;
my $text = $_;
- do {
+ while ($text !~ /\)/) {
$text .= <FP>;
- } until $text =~ /\)/;
+ }
if ($text =~ /nget\(\s*(['"])(.*?)\1\s*,\s*(['"])(.*?)\3\s*,\s*(.*?)\s*\)/s) {
$out{$2} = {
file => $File::Find::name,