summaryrefslogtreecommitdiff
path: root/i18n-diff-auditor
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-10-01 00:28:26 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-10-01 00:54:38 +0100
commitdf40de728a833cbba178e87c3df19329255c0f64 (patch)
tree851e2dd012e0d85027bffae61c857a35e9a66954 /i18n-diff-auditor
parent1313be7ce13aa5eb2fa4cbe24ff9afb32b530c96 (diff)
i18n: i18n-diff-auditor: recognise tail concatenation
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'i18n-diff-auditor')
-rwxr-xr-xi18n-diff-auditor9
1 files changed, 9 insertions, 0 deletions
diff --git a/i18n-diff-auditor b/i18n-diff-auditor
index 73c77ec..8ec5e9f 100755
--- a/i18n-diff-auditor
+++ b/i18n-diff-auditor
@@ -273,6 +273,15 @@ sub analyse_chunk_core () {
elsif ($& ne '%s') { die "unhandled %-subst $&\n"; }
$next_y->();
die "expected comma, got $y->{P}\n" unless $y->{E} eq ',';
+ if (!length $fmt and
+ !length $xs and
+ @xs and
+ $xs[0]{E} eq '.') {
+ # X has "<earlier>" . <something>
+ # Y has "<earlier>%s" [other args] , <something>
+ $next_x->(); # eat the '.'
+ next;
+ }
if ($xs =~ m{^\@}) {
$next_y->();
die "\@... => not string" unless is_string($y);