From: Ian Jackson Date: Mon, 1 Oct 2018 00:06:44 +0000 (+0100) Subject: i18n: i18n-diff-auditor: Handle some ( __ etc., without +( X-Git-Tag: archive/debian/7.0_pre1~47 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=082759594b008c128c7f66791d9b0845bcb0da33;p=dgit.git i18n: i18n-diff-auditor: Handle some ( __ etc., without +( Signed-off-by: Ian Jackson --- diff --git a/i18n-diff-auditor b/i18n-diff-auditor index ce2034f6..a32b554d 100755 --- a/i18n-diff-auditor +++ b/i18n-diff-auditor @@ -217,7 +217,15 @@ sub analyse_chunk_core () { and $ys[0]{E} eq '(' and is_trans($ys[1])) { $next_y->(); # ( - $next_y->(); # __ f_ + $next_y->(); # __ f_ i_ + @y_expect_suffix = ')'; + } elsif ($y->{E} eq '(' + and @ys > 2 + and is_trans($ys[0]) + and @analysed_y + and (grep { $_ eq $analysed_y[-1] } (qw( => [ { ? : . ), + '(', ',') )) { + $next_y->(); # __ f_ i_ @y_expect_suffix = ')'; } my $string_changed;